pub struct Example {
pub name: &'static str,
pub description: &'static str,
pub default_variant: &'static str,
pub variants: &'static [&'static str],
}Expand description
Metadata and variant catalog for one maintained CLI example.
Fields§
§name: &'static strStable command-line name.
description: &'static strShort experimentation-oriented description.
default_variant: &'static strVariant selected when --variant is omitted.
variants: &'static [&'static str]Complete supported variant names.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnsafeUnpin for Example
impl UnwindSafe for Example
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