pub struct FlagResult {
pub enabled: bool,
pub name: String,
pub reason: String,
pub value: FlagsmithValue,
pub metadata: FeatureMetadata,
}Expand description
Represents the evaluated result for a single feature flag.
Fields§
§enabled: boolWhether the feature is enabled.
name: StringThe name of the feature.
reason: StringThe reason for this evaluation result (e.g., “DEFAULT”, “TARGETING_MATCH; segment=name”, “SPLIT; weight=50”).
value: FlagsmithValueThe value of the feature flag.
metadata: FeatureMetadataMetadata about the feature.
Trait Implementations§
Source§impl Clone for FlagResult
impl Clone for FlagResult
Source§fn clone(&self) -> FlagResult
fn clone(&self) -> FlagResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlagResult
impl Debug for FlagResult
Source§impl<'de> Deserialize<'de> for FlagResult
impl<'de> Deserialize<'de> for FlagResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FlagResult
impl PartialEq for FlagResult
Source§impl Serialize for FlagResult
impl Serialize for FlagResult
impl StructuralPartialEq for FlagResult
Auto Trait Implementations§
impl Freeze for FlagResult
impl RefUnwindSafe for FlagResult
impl Send for FlagResult
impl Sync for FlagResult
impl Unpin for FlagResult
impl UnwindSafe for FlagResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more