openfeature/evaluation_context

Types

pub type EvaluationContext {
  EvaluationContext(
    targeting_key: Option(String),
    attributes: Dict(String, Dynamic),
  )
}

Constructors

  • EvaluationContext(
      targeting_key: Option(String),
      attributes: Dict(String, Dynamic),
    )

Functions

pub fn empty() -> EvaluationContext
pub fn get_all_attributes(
  evaluation_context: EvaluationContext,
) -> List(#(String, Dynamic))
pub fn get_attribute(
  evaluation_context: EvaluationContext,
  key: String,
) -> Result(Dynamic, Nil)
pub fn merge(
  initial_context: EvaluationContext,
  overriding_context: EvaluationContext,
) -> EvaluationContext
pub fn targeted(
  targeting_key: String,
  attributes: List(#(String, Dynamic)),
) -> EvaluationContext
pub fn targetless(
  attributes: List(#(String, Dynamic)),
) -> EvaluationContext
Search Document