pub struct FlagDetail {
pub key: String,
pub enabled: bool,
pub variant: Option<String>,
pub reason: Option<FlagReason>,
pub metadata: Option<FlagMetadata>,
}Expand description
Detailed information about a feature flag evaluation result.
Returned by the /decide endpoint with extended information about
why a flag evaluated to a particular value.
Fields§
§key: StringThe feature flag key
enabled: boolWhether the flag is enabled for this user
variant: Option<String>The variant key if this is a multivariate flag
reason: Option<FlagReason>Reason explaining why the flag evaluated to this value
metadata: Option<FlagMetadata>Additional metadata about the flag
Trait Implementations§
Source§impl Clone for FlagDetail
impl Clone for FlagDetail
Source§fn clone(&self) -> FlagDetail
fn clone(&self) -> FlagDetail
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 FlagDetail
impl Debug for FlagDetail
Source§impl<'de> Deserialize<'de> for FlagDetail
impl<'de> Deserialize<'de> for FlagDetail
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
Auto Trait Implementations§
impl Freeze for FlagDetail
impl RefUnwindSafe for FlagDetail
impl Send for FlagDetail
impl Sync for FlagDetail
impl Unpin for FlagDetail
impl UnwindSafe for FlagDetail
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