pub struct SwitchDefinition {
pub name: String,
pub description: String,
pub aliases: Vec<String>,
}Expand description
Declarative value-taking option metadata.
Fields§
§name: StringCanonical option name, for example: “path”.
description: StringHuman-readable description for help output.
aliases: Vec<String>Alternative spellings accepted during parsing.
Implementations§
Trait Implementations§
Source§impl Clone for SwitchDefinition
impl Clone for SwitchDefinition
Source§fn clone(&self) -> SwitchDefinition
fn clone(&self) -> SwitchDefinition
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 SwitchDefinition
impl Debug for SwitchDefinition
impl Eq for SwitchDefinition
Source§impl PartialEq for SwitchDefinition
impl PartialEq for SwitchDefinition
Source§fn eq(&self, other: &SwitchDefinition) -> bool
fn eq(&self, other: &SwitchDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SwitchDefinition
Auto Trait Implementations§
impl Freeze for SwitchDefinition
impl RefUnwindSafe for SwitchDefinition
impl Send for SwitchDefinition
impl Sync for SwitchDefinition
impl Unpin for SwitchDefinition
impl UnsafeUnpin for SwitchDefinition
impl UnwindSafe for SwitchDefinition
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