Crate configcat

Source
Expand description

ConfigCat SDK for Rust.

For more information and code samples, see the Rust SDK documentation.

Structs§

Client
The main component for evaluating feature flags and settings.
ClientBuilder
Builder to create ConfigCat Client.
ClientError
Error struct that holds the ErrorKind and message of the reported failure.
Condition
Describes a condition that can contain either a UserCondition, a SegmentCondition, or a PrerequisiteFlagCondition.
Config
Describes a ConfigCat config JSON.
EvaluationDetails
Details of the flag evaluation’s result.
FileDataSource
Data source that gets the overridden feature flag or setting values from a JSON file.
MapDataSource
Data source that gets the overridden feature flag or setting values from a HashMap or a [(&str, Value)] array.
PercentageOption
Describes a percentage option.
PrerequisiteFlagCondition
Describes a condition that is based on a prerequisite flag.
Segment
Describes a segment.
SegmentCondition
Describes a condition that is based on a Segment.
ServedValue
Describes a setting value along with related data.
Setting
Describes a feature flag or setting.
SettingValue
Describes a setting’s value.
SimplifiedConfig
Represents feature flag and setting overrides in a simple JSON map format.
TargetingRule
Describes a targeting rule.
User
Describes a User Object. Contains user attributes which are used for evaluating targeting rules and percentage options.
UserCondition
Describes a condition that is based on a crate::User attribute.

Enums§

ClientCacheState
Describes the internal state of the crate::Client.
DataGovernance
Describes the location of your feature flag and setting data within the ConfigCat CDN.
ErrorKind
Error kind that represents failures reported by the crate::Client.
OverrideBehavior
Specifies the behaviors for flag overrides.
PollingMode
Describes the available polling modes.
PrerequisiteFlagComparator
Prerequisite flag comparison operator used during the evaluation process.
SegmentComparator
Segment comparison operator used during the evaluation process.
SettingType
The type of the feature flag or setting.
UserComparator
User Object attribute comparison operator used during the evaluation process.
UserValue
Supported user attribute value types.
Value
Represents the value of a feature flag or setting.

Constants§

PKG_VERSION
The ConfigCat Rust SDK’s version.

Traits§

ConfigCache
A cache API used to make custom cache implementations.
OverrideDataSource
Data source that provides feature flag and setting value overrides.
ValuePrimitive
Represents a primitive type that can describe the value of a feature flag or setting.