openfeature/providers/in_memory
Types
pub type Flag {
Flag(
default_variant: String,
variants: Variants,
context_evaluator: Option(
fn(EvaluationContext) -> ResolutionDetails(dynamic.Dynamic),
),
)
}
Constructors
-
Flag( default_variant: String, variants: Variants, context_evaluator: Option( fn(EvaluationContext) -> ResolutionDetails(dynamic.Dynamic), ), )
Functions
pub fn new_variants(
variants: List(#(String, a)),
) -> Dict(String, Dynamic)