pub struct CommandTargetMetadata {
pub source: Option<CommandTargetSpec>,
pub target: Option<CommandTargetSpec>,
}Expand description
Per-command source and target lookup metadata.
Fields§
§source: Option<CommandTargetSpec>Metadata for the source target flag, when the command has one.
target: Option<CommandTargetSpec>Metadata for the target flag, when the command has one.
Trait Implementations§
Source§impl Clone for CommandTargetMetadata
impl Clone for CommandTargetMetadata
Source§fn clone(&self) -> CommandTargetMetadata
fn clone(&self) -> CommandTargetMetadata
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 moreimpl Copy for CommandTargetMetadata
Source§impl Debug for CommandTargetMetadata
impl Debug for CommandTargetMetadata
impl Eq for CommandTargetMetadata
Source§impl PartialEq for CommandTargetMetadata
impl PartialEq for CommandTargetMetadata
impl StructuralPartialEq for CommandTargetMetadata
Auto Trait Implementations§
impl Freeze for CommandTargetMetadata
impl RefUnwindSafe for CommandTargetMetadata
impl Send for CommandTargetMetadata
impl Sync for CommandTargetMetadata
impl Unpin for CommandTargetMetadata
impl UnsafeUnpin for CommandTargetMetadata
impl UnwindSafe for CommandTargetMetadata
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