pub struct FlagsContext {
pub values: Annotated<Array<FlagsContextItem>>,
pub other: Object<Value>,
}Expand description
Flags context.
The flags context is a collection of flag evaluations performed during the lifetime of a process. The flags are submitted in the order they were evaluated to preserve the state transformations taking place in the application.
Fields§
§values: Annotated<Array<FlagsContextItem>>An list of flag evaluation results in the order they were evaluated.
other: Object<Value>Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl Clone for FlagsContext
impl Clone for FlagsContext
Source§fn clone(&self) -> FlagsContext
fn clone(&self) -> FlagsContext
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 FlagsContext
impl Debug for FlagsContext
Source§impl Default for FlagsContext
impl Default for FlagsContext
Source§fn default() -> FlagsContext
fn default() -> FlagsContext
Returns the “default value” for a type. Read more
Source§impl DefaultContext for FlagsContext
impl DefaultContext for FlagsContext
Source§fn default_key() -> &'static str
fn default_key() -> &'static str
The default key at which this context resides in
Contexts.Source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
Converts this context type from a generic context type. Read more
Source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
Casts a reference to this context type from a generic context type. Read more
Source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
Casts a mutable reference to this context type from a generic context type. Read more
Source§fn into_context(self) -> Context
fn into_context(self) -> Context
Boxes this context type in the generic context wrapper. Read more
Source§impl Empty for FlagsContext
impl Empty for FlagsContext
Source§impl FromObjectRef for FlagsContext
impl FromObjectRef for FlagsContext
Source§impl FromValue for FlagsContext
impl FromValue for FlagsContext
Source§impl IntoObjectRef for FlagsContext
impl IntoObjectRef for FlagsContext
Source§impl IntoValue for FlagsContext
impl IntoValue for FlagsContext
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
Source§impl PartialEq for FlagsContext
impl PartialEq for FlagsContext
Source§impl ProcessValue for FlagsContext
impl ProcessValue for FlagsContext
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
Source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
Source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for FlagsContext
Auto Trait Implementations§
impl Freeze for FlagsContext
impl RefUnwindSafe for FlagsContext
impl Send for FlagsContext
impl Sync for FlagsContext
impl Unpin for FlagsContext
impl UnsafeUnpin for FlagsContext
impl UnwindSafe for FlagsContext
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