Enum veloren_common::cmd::ServerChatCommand
source · pub enum ServerChatCommand {
Show 91 variants
Adminify,
Airship,
Alias,
AreaAdd,
AreaList,
AreaRemove,
Aura,
Ban,
BattleMode,
BattleModeForce,
Body,
Buff,
Build,
Campfire,
ClearPersistedTerrain,
CreateLocation,
DebugColumn,
DebugWays,
DeleteLocation,
DestroyTethers,
DisconnectAllPlayers,
Dismount,
DropAll,
Dummy,
Explosion,
Faction,
GiveItem,
Goto,
Group,
GroupInvite,
GroupKick,
GroupLeave,
GroupPromote,
Health,
Help,
IntoNpc,
JoinFaction,
Jump,
Kick,
Kill,
KillNpcs,
Kit,
Lantern,
Light,
Lightning,
Location,
MakeBlock,
MakeNpc,
MakeSprite,
MakeVolume,
Motd,
Mount,
Object,
PermitBuild,
Players,
Portal,
Region,
ReloadChunks,
RemoveLights,
RepairEquipment,
Respawn,
RevokeBuild,
RevokeBuildAll,
RtsimChunk,
RtsimInfo,
RtsimNpc,
RtsimPurge,
RtsimTp,
Safezone,
Say,
Scale,
ServerPhysics,
SetMotd,
Ship,
Site,
SkillPoint,
SkillPreset,
Spawn,
Sudo,
Tell,
Tether,
Time,
TimeScale,
Tp,
Unban,
Version,
Waypoint,
WeatherZone,
Whitelist,
Wiring,
World,
}
Variants§
Adminify
Airship
Alias
AreaAdd
AreaList
AreaRemove
Aura
Ban
BattleMode
BattleModeForce
Body
Buff
Build
Campfire
ClearPersistedTerrain
CreateLocation
DebugColumn
DebugWays
DeleteLocation
DestroyTethers
DisconnectAllPlayers
Dismount
DropAll
Dummy
Explosion
Faction
GiveItem
Goto
Group
GroupInvite
GroupKick
GroupLeave
GroupPromote
Health
Help
IntoNpc
JoinFaction
Jump
Kick
Kill
KillNpcs
Kit
Lantern
Light
Lightning
Location
MakeBlock
MakeNpc
MakeSprite
MakeVolume
Motd
Mount
Object
PermitBuild
Players
Portal
Region
ReloadChunks
RemoveLights
RepairEquipment
Respawn
RevokeBuild
RevokeBuildAll
RtsimChunk
RtsimInfo
RtsimNpc
RtsimPurge
RtsimTp
Safezone
Say
Scale
ServerPhysics
SetMotd
Ship
Site
SkillPoint
SkillPreset
Spawn
Sudo
Tell
Tether
Time
TimeScale
Tp
Unban
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_string(&self) -> String
pub fn help_string(&self) -> String
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 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