Expand description
This is the official Rust package for OpenFeature. Check OpenFeature website for the background. Check its README for examples.
Modules§
- __
mock_ Mock Hook - __
mock_ Mock Hook_ Hook - provider
- Feature provider related.
Structs§
- Client
- The OpenFeature client.
Create it through the [
OpenFeature
] struct. - Client
Metadata - The metadata of OpenFeature client.
- Evaluation
Context - The evaluation context provides ambient information for the purposes of flag evaluation. Contextual data may be used as the basis for targeting, including rule-based evaluation, overrides for specific subjects, or fractional flag evaluation.
- Evaluation
Details - The result of the flag evaluation process, and made available in the detailed flag resolution functions.
- Evaluation
Error - Struct representing error
- Evaluation
Options - Contain hooks.
- Flag
Metadata - A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.
- Hook
Context - Context for hooks.
- Hook
Hints - Hook
Wrapper - Logging
Hook - A hook that logs the evaluation lifecycle of a flag. See the spec
- Mock
Hook - Hook allows application developers to add arbitrary behavior to the flag evaluation lifecycle. They operate similarly to middleware in many web frameworks.
- Open
Feature - THE struct of the OpenFeature API.
Access it via the [
SINGLETON
] instance. - Struct
Value - Represent a structure value as defined in the spec.
Enums§
- Evaluation
Context Field Value - Value type of evaluation context custom fields.
- Evaluation
Error Code - An enumerated error code represented idiomatically in the implementation language.
- Evaluation
Reason - Reason for evaluation.
- Flag
Metadata Value - Supported values of flag metadata fields.
- Type
- Supported types of values. spec.
- Value
- Hold a value in the evaluation result of supported types.
Traits§
- Hook
- Hook allows application developers to add arbitrary behavior to the flag evaluation lifecycle. They operate similarly to middleware in many web frameworks.
Type Aliases§
- Evaluation
Result - The result of evaluation.