openfeature/client

Types

pub type Client {
  Client(
    provider: FeatureProvider,
    metadata: ClientMetadata,
    evaluation_context: EvaluationContext,
  )
}

Constructors

  • Client(
      provider: FeatureProvider,
      metadata: ClientMetadata,
      evaluation_context: EvaluationContext,
    )
pub type ClientMetadata {
  ClientMetadata(domain: Domain)
}

Constructors

  • ClientMetadata(domain: Domain)

Functions

pub fn get_bool_details(
  client: Client,
  flag: String,
  default_value: Bool,
  evaluation_context: EvaluationContext,
) -> ResolutionDetails(Bool)
pub fn get_bool_value(
  client: Client,
  flag: String,
  default_value: Bool,
  evaluation_context: EvaluationContext,
) -> Bool
pub fn get_domain(metadata: ClientMetadata) -> Domain
pub fn get_dynamic_details(
  client: Client,
  flag: String,
  default_value: Dynamic,
  evaluation_context: EvaluationContext,
) -> ResolutionDetails(Dynamic)
pub fn get_dynamic_value(
  client: Client,
  flag: String,
  default_value: Dynamic,
  evaluation_context: EvaluationContext,
) -> Dynamic
pub fn get_float_details(
  client: Client,
  flag: String,
  default_value: Float,
  evaluation_context: EvaluationContext,
) -> ResolutionDetails(Float)
pub fn get_float_value(
  client: Client,
  flag: String,
  default_value: Float,
  evaluation_context: EvaluationContext,
) -> Float
pub fn get_int_details(
  client: Client,
  flag: String,
  default_value: Int,
  evaluation_context: EvaluationContext,
) -> ResolutionDetails(Int)
pub fn get_int_value(
  client: Client,
  flag: String,
  default_value: Int,
  evaluation_context: EvaluationContext,
) -> Int
pub fn get_name(metadata: ClientMetadata) -> Domain

Deprecated: This exists for historical compatibility, use `get_domain` instead.

pub fn get_string_details(
  client: Client,
  flag: String,
  default_value: String,
  evaluation_context: EvaluationContext,
) -> ResolutionDetails(String)
pub fn get_string_value(
  client: Client,
  flag: String,
  default_value: String,
  evaluation_context: EvaluationContext,
) -> String
pub fn set_context(
  client: Client,
  evaluation_context: EvaluationContext,
) -> Client
Search Document