pub struct CommandDef {Show 13 fields
pub id: String,
pub name: String,
pub description: String,
pub category: String,
pub parameters: Vec<ParamDef>,
pub returns: String,
pub side_effects: Vec<String>,
pub preconditions: Vec<String>,
pub examples: Vec<Example>,
pub follows: Vec<String>,
pub preceded_by: Vec<String>,
pub idempotent: bool,
pub safe: bool,
}Fields§
§id: String§name: String§description: String§category: String§parameters: Vec<ParamDef>§returns: String§side_effects: Vec<String>§preconditions: Vec<String>§examples: Vec<Example>§follows: Vec<String>Commands that commonly follow this one
preceded_by: Vec<String>Commands that commonly precede this one
idempotent: bool§safe: boolTrait Implementations§
Source§impl Debug for CommandDef
impl Debug for CommandDef
Auto Trait Implementations§
impl Freeze for CommandDef
impl RefUnwindSafe for CommandDef
impl Send for CommandDef
impl Sync for CommandDef
impl Unpin for CommandDef
impl UnsafeUnpin for CommandDef
impl UnwindSafe for CommandDef
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