pub struct FlagTarget {
pub binding: Binding,
pub entry: Option<String>,
}Expand description
A resolved --<path>[.<key>] flag: the schema binding it addresses and, when
the flag reaches into a free-form map, the entry key (exact spelling).
Fields§
§binding: Binding§entry: Option<String>Some(key) for --intelligence_headers.x-team (key = x-team); None
when the flag names the schema path itself.
Implementations§
Source§impl FlagTarget
impl FlagTarget
Sourcepub fn value_kind(&self) -> &Kind
pub fn value_kind(&self) -> &Kind
The kind the flag’s VALUE is typed by: the map’s entry type when an entry is addressed, else the path’s own type.
Trait Implementations§
Source§impl Clone for FlagTarget
impl Clone for FlagTarget
Source§fn clone(&self) -> FlagTarget
fn clone(&self) -> FlagTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FlagTarget
impl Debug for FlagTarget
Source§impl PartialEq for FlagTarget
impl PartialEq for FlagTarget
impl StructuralPartialEq for FlagTarget
Auto Trait Implementations§
impl Freeze for FlagTarget
impl RefUnwindSafe for FlagTarget
impl Send for FlagTarget
impl Sync for FlagTarget
impl Unpin for FlagTarget
impl UnsafeUnpin for FlagTarget
impl UnwindSafe for FlagTarget
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