Crate open_feature
source ·Expand description
This is the official Rust package for OpenFeature. Check OpenFeature website for the background. Check its README for examples.
Modules§
- Feature provider related.
Structs§
- The OpenFeature client. Create it through the [
OpenFeature
] struct. - The metadata of OpenFeature client.
- 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.
- The result of the flag evaluation process, and made available in the detailed flag resolution functions.
- Struct representing error
- Contain hooks.
- A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.
- THE struct of the OpenFeature API. Access it via the [
SINGLETON
] instance. - Represent a structure value as defined in the spec.
Enums§
- Value type of evaluation context custom fields.
- An enumerated error code represented idiomatically in the implementation language.
- Reason for evaluation.
- Supported values of flag metadata fields.
- Hold a value in the evaluation result of supported types.
Type Aliases§
- The result of evaluation.