pub struct CommandExample {
pub description: String,
pub command_line: String,
pub explanation: Option<String>,
}Expand description
Example usage for a command
Fields§
§description: StringBrief description of what this example demonstrates
command_line: StringThe complete command line example
explanation: Option<String>Optional explanation of the parameters used
Trait Implementations§
Source§impl Clone for CommandExample
impl Clone for CommandExample
Source§fn clone(&self) -> CommandExample
fn clone(&self) -> CommandExample
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 CommandExample
impl Debug for CommandExample
Source§impl<'de> Deserialize<'de> for CommandExample
impl<'de> Deserialize<'de> for CommandExample
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
Source§impl PartialEq for CommandExample
impl PartialEq for CommandExample
Source§impl Serialize for CommandExample
impl Serialize for CommandExample
impl Eq for CommandExample
impl StructuralPartialEq for CommandExample
Auto Trait Implementations§
impl Freeze for CommandExample
impl RefUnwindSafe for CommandExample
impl Send for CommandExample
impl Sync for CommandExample
impl Unpin for CommandExample
impl UnsafeUnpin for CommandExample
impl UnwindSafe for CommandExample
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.