Enum veloren_common::cmd::ServerChatCommand
source · pub enum ServerChatCommand {
Show 96 variants
Adminify,
Airship,
Alias,
AreaAdd,
AreaList,
AreaRemove,
Aura,
Ban,
BanIp,
BattleMode,
BattleModeForce,
Body,
Buff,
Build,
Campfire,
ClearPersistedTerrain,
CreateLocation,
DeathEffect,
DebugColumn,
DebugWays,
DeleteLocation,
DestroyTethers,
DisconnectAllPlayers,
Dismount,
DropAll,
Dummy,
Explosion,
Faction,
GiveItem,
Goto,
Group,
GroupInvite,
GroupKick,
GroupLeave,
GroupPromote,
Health,
IntoNpc,
JoinFaction,
Jump,
Kick,
Kill,
KillNpcs,
Kit,
Lantern,
Light,
Lightning,
Location,
MakeBlock,
MakeNpc,
MakeSprite,
MakeVolume,
Motd,
Mount,
Object,
Outcome,
PermitBuild,
Players,
Portal,
Region,
ReloadChunks,
RemoveLights,
RepairEquipment,
ResetRecipes,
Respawn,
RevokeBuild,
RevokeBuildAll,
RtsimChunk,
RtsimInfo,
RtsimNpc,
RtsimPurge,
RtsimTp,
Safezone,
Say,
Scale,
ServerPhysics,
SetMotd,
Ship,
Site,
SkillPoint,
SkillPreset,
Spawn,
Spot,
Sudo,
Tell,
Tether,
Time,
TimeScale,
Tp,
Unban,
UnbanIp,
Version,
Waypoint,
WeatherZone,
Whitelist,
Wiring,
World,
}
Variants§
Adminify
Airship
Alias
AreaAdd
AreaList
AreaRemove
Aura
Ban
BanIp
BattleMode
BattleModeForce
Body
Buff
Build
Campfire
ClearPersistedTerrain
CreateLocation
DeathEffect
DebugColumn
DebugWays
DeleteLocation
DestroyTethers
DisconnectAllPlayers
Dismount
DropAll
Dummy
Explosion
Faction
GiveItem
Goto
Group
GroupInvite
GroupKick
GroupLeave
GroupPromote
Health
IntoNpc
JoinFaction
Jump
Kick
Kill
KillNpcs
Kit
Lantern
Light
Lightning
Location
MakeBlock
MakeNpc
MakeSprite
MakeVolume
Motd
Mount
Object
Outcome
PermitBuild
Players
Portal
Region
ReloadChunks
RemoveLights
RepairEquipment
ResetRecipes
Respawn
RevokeBuild
RevokeBuildAll
RtsimChunk
RtsimInfo
RtsimNpc
RtsimPurge
RtsimTp
Safezone
Say
Scale
ServerPhysics
SetMotd
Ship
Site
SkillPoint
SkillPreset
Spawn
Spot
Sudo
Tell
Tether
Time
TimeScale
Tp
Unban
UnbanIp
Version
Waypoint
WeatherZone
Whitelist
Wiring
World
Implementations§
source§impl ServerChatCommand
impl ServerChatCommand
pub fn data(&self) -> ChatCommandData
sourcepub fn keyword(&self) -> &'static str
pub fn keyword(&self) -> &'static str
The keyword used to invoke the command, omitting the prefix.
sourcepub fn short_keyword(&self) -> Option<&'static str>
pub fn short_keyword(&self) -> Option<&'static str>
The short keyword used to invoke the command, omitting the leading ‘/’. Returns None if the command doesn’t have a short keyword
sourcepub fn iter() -> impl Iterator<Item = Self> + Clone
pub fn iter() -> impl Iterator<Item = Self> + Clone
Produce an iterator over all the available commands
sourcepub fn help_content(&self) -> Content
pub fn help_content(&self) -> Content
A message that explains what the command does
sourcepub fn iter_with_keywords() -> impl Iterator<Item = (&'static str, Self)>
pub fn iter_with_keywords() -> impl Iterator<Item = (&'static str, Self)>
Produce an iterator that first goes over all the short keywords and their associated commands and then iterates over all the normal keywords with their associated commands
pub fn needs_role(&self) -> Option<AdminRole>
Trait Implementations§
source§impl Clone for ServerChatCommand
impl Clone for ServerChatCommand
source§fn clone(&self) -> ServerChatCommand
fn clone(&self) -> ServerChatCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for ServerChatCommand
impl Display for ServerChatCommand
source§impl FromStr for ServerChatCommand
impl FromStr for ServerChatCommand
source§impl IntoEnumIterator for ServerChatCommand
impl IntoEnumIterator for ServerChatCommand
type Iterator = ServerChatCommandIter
fn iter() -> ServerChatCommandIter ⓘ
impl Copy for ServerChatCommand
Auto Trait Implementations§
impl Freeze for ServerChatCommand
impl RefUnwindSafe for ServerChatCommand
impl Send for ServerChatCommand
impl Sync for ServerChatCommand
impl Unpin for ServerChatCommand
impl UnwindSafe for ServerChatCommand
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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