pub struct ExampleSnapshot {
pub command: String,
pub explanation: Option<String>,
}Expand description
Snapshot form of Example.
Fields§
§command: StringThe example command line, verbatim.
explanation: Option<String>An optional explanation of what the example does.
Trait Implementations§
Source§impl Clone for ExampleSnapshot
impl Clone for ExampleSnapshot
Source§fn clone(&self) -> ExampleSnapshot
fn clone(&self) -> ExampleSnapshot
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 ExampleSnapshot
impl Debug for ExampleSnapshot
Source§impl From<&Example> for ExampleSnapshot
impl From<&Example> for ExampleSnapshot
Source§impl PartialEq for ExampleSnapshot
impl PartialEq for ExampleSnapshot
Source§impl Serialize for ExampleSnapshot
impl Serialize for ExampleSnapshot
impl StructuralPartialEq for ExampleSnapshot
Auto Trait Implementations§
impl Freeze for ExampleSnapshot
impl RefUnwindSafe for ExampleSnapshot
impl Send for ExampleSnapshot
impl Sync for ExampleSnapshot
impl Unpin for ExampleSnapshot
impl UnsafeUnpin for ExampleSnapshot
impl UnwindSafe for ExampleSnapshot
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