pub struct FlagReason {
pub code: String,
pub condition_index: Option<usize>,
pub description: Option<String>,
}Expand description
Explains why a feature flag evaluated to a particular value.
Fields§
§code: StringReason code (e.g., “condition_match”, “out_of_rollout_bound”)
condition_index: Option<usize>Index of the condition that matched (if applicable)
description: Option<String>Human-readable description of the reason
Trait Implementations§
Source§impl Clone for FlagReason
impl Clone for FlagReason
Source§fn clone(&self) -> FlagReason
fn clone(&self) -> FlagReason
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 FlagReason
impl Debug for FlagReason
Source§impl<'de> Deserialize<'de> for FlagReason
impl<'de> Deserialize<'de> for FlagReason
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 FlagReason
impl RefUnwindSafe for FlagReason
impl Send for FlagReason
impl Sync for FlagReason
impl Unpin for FlagReason
impl UnwindSafe for FlagReason
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