pub struct CommandItem {
pub name: Ident,
pub params: Vec<CommandParam>,
pub result: TypeRef,
pub result_ty: Type,
pub doc: String,
pub errors: Vec<String>,
pub idempotent: bool,
pub on: Option<(Ident, Ident)>,
pub span: Span,
}Fields§
§name: Ident§params: Vec<CommandParam>§result: TypeRef§result_ty: Type§doc: String§errors: Vec<String>§idempotent: bool§on: Option<(Ident, Ident)>#[on(module::event)]: the event this command answers, as
(module, event).
span: SpanTrait Implementations§
Source§impl Clone for CommandItem
impl Clone for CommandItem
Auto Trait Implementations§
impl !Send for CommandItem
impl !Sync for CommandItem
impl Freeze for CommandItem
impl RefUnwindSafe for CommandItem
impl Unpin for CommandItem
impl UnsafeUnpin for CommandItem
impl UnwindSafe for CommandItem
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