pub struct CliExample {
pub intent: &'static str,
pub command: &'static str,
}Expand description
One worked example, declared as an intent and the command line that serves
it. See crate::ContractExample for why both halves are required.
Fields§
§intent: &'static str§command: &'static strImplementations§
Trait Implementations§
Source§impl Clone for CliExample
impl Clone for CliExample
impl Copy for CliExample
Source§impl Debug for CliExample
impl Debug for CliExample
impl Eq for CliExample
Source§impl PartialEq for CliExample
impl PartialEq for CliExample
impl StructuralPartialEq for CliExample
Auto Trait Implementations§
impl Freeze for CliExample
impl RefUnwindSafe for CliExample
impl Send for CliExample
impl Sync for CliExample
impl Unpin for CliExample
impl UnsafeUnpin for CliExample
impl UnwindSafe for CliExample
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