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§

__mock_MockHook
__mock_MockHook_Hook
provider
Feature provider related.

Structs§

Client
The OpenFeature client. Create it through the [OpenFeature] struct.
ClientMetadata
The metadata of OpenFeature client.
EvaluationContext
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.
EvaluationDetails
The result of the flag evaluation process, and made available in the detailed flag resolution functions.
EvaluationError
Struct representing error
EvaluationOptions
Contain hooks.
FlagMetadata
A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.
HookContext
Context for hooks.
HookHints
HookWrapper
LoggingHook
A hook that logs the evaluation lifecycle of a flag. See the spec
MockHook
Hook allows application developers to add arbitrary behavior to the flag evaluation lifecycle. They operate similarly to middleware in many web frameworks.
OpenFeature
THE struct of the OpenFeature API. Access it via the [SINGLETON] instance.
StructValue
Represent a structure value as defined in the spec.

Enums§

EvaluationContextFieldValue
Value type of evaluation context custom fields.
EvaluationErrorCode
An enumerated error code represented idiomatically in the implementation language.
EvaluationReason
Reason for evaluation.
FlagMetadataValue
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§

EvaluationResult
The result of evaluation.

Attribute Macros§

async_trait