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.
- Client
Builder - Builder to create ConfigCat
Client
. - Client
Error - Error struct that holds the
ErrorKind
and message of the reported failure. - Condition
- Describes a condition that can contain either a
UserCondition
, aSegmentCondition
, or aPrerequisiteFlagCondition
. - Config
- Describes a ConfigCat config JSON.
- Evaluation
Details - Details of the flag evaluation’s result.
- File
Data Source - Data source that gets the overridden feature flag or setting values from a JSON file.
- MapData
Source - Data source that gets the overridden feature flag or setting values from a
HashMap
or a[(&str, Value)]
array. - Percentage
Option - Describes a percentage option.
- Prerequisite
Flag Condition - Describes a condition that is based on a prerequisite flag.
- Segment
- Describes a segment.
- Segment
Condition - Describes a condition that is based on a
Segment
. - Served
Value - Describes a setting value along with related data.
- Setting
- Describes a feature flag or setting.
- Setting
Value - Describes a setting’s value.
- Simplified
Config - Represents feature flag and setting overrides in a simple JSON map format.
- Targeting
Rule - Describes a targeting rule.
- User
- Describes a User Object. Contains user attributes which are used for evaluating targeting rules and percentage options.
- User
Condition - Describes a condition that is based on a
crate::User
attribute.
Enums§
- Client
Cache State - Describes the internal state of the
crate::Client
. - Data
Governance - Describes the location of your feature flag and setting data within the ConfigCat CDN.
- Error
Kind - Error kind that represents failures reported by the
crate::Client
. - Override
Behavior - Specifies the behaviors for flag overrides.
- Polling
Mode - Describes the available polling modes.
- Prerequisite
Flag Comparator - Prerequisite flag comparison operator used during the evaluation process.
- Segment
Comparator - Segment comparison operator used during the evaluation process.
- Setting
Type - The type of the feature flag or setting.
- User
Comparator - User Object attribute comparison operator used during the evaluation process.
- User
Value - 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§
- Config
Cache - A cache API used to make custom cache implementations.
- Override
Data Source - Data source that provides feature flag and setting value overrides.
- Value
Primitive - Represents a primitive type that can describe the value of a feature flag or setting.