pub struct FlagValue {
pub name: String,
pub value: bool,
}Expand description
A flag resolved to the value one run will see. Distinct from Flag, which declares what a pipeline accepts: a declaration carries a default, and reporting that default back as though it were the operator’s choice would hide the difference between a flag left alone and a flag deliberately set to the same value.
Fields§
§name: StringThe name a prompt tests with @include(name).
value: boolThe value this run will see.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlagValue
impl<'de> Deserialize<'de> for FlagValue
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
impl StructuralPartialEq for FlagValue
Auto Trait Implementations§
impl Freeze for FlagValue
impl RefUnwindSafe for FlagValue
impl Send for FlagValue
impl Sync for FlagValue
impl Unpin for FlagValue
impl UnsafeUnpin for FlagValue
impl UnwindSafe for FlagValue
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