Struct veloren_common::cmd::ChatCommandData
source · pub struct ChatCommandData {
pub args: Vec<ArgumentSpec>,
pub description: Content,
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: Content
The i18n content for the description of the command
needs_role: Option<AdminRole>
Whether the command requires administrator permissions.
Implementations§
Auto Trait Implementations§
impl Freeze for ChatCommandData
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more