Struct veloren_common::cmd::ChatCommandData
source · pub struct ChatCommandData {
pub args: Vec<ArgumentSpec>,
pub description: &'static str,
pub needs_role: Option<AdminRole>,
}
Expand description
Struct representing a command that a user can run from server chat.
Fields§
§args: Vec<ArgumentSpec>
A list of arguments useful for both tab completion and parsing
description: &'static str
A one-line message that explains what the command does
needs_role: Option<AdminRole>
Whether the command requires administrator permissions.
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ChatCommandData
impl Send for ChatCommandData
impl Sync for ChatCommandData
impl Unpin for ChatCommandData
impl UnwindSafe for ChatCommandData
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