pub struct ClientCommand {
pub command: ClientCommandContents,
pub game: Cow<'static, str>,
}Expand description
A client to server (game to Neuro) message.
Fields§
§command: ClientCommandContentsThe command itself.
game: Cow<'static, str>The game name. This is used to identify the game. It should always be the same and should not change. You should use the game’s display name, including any spaces and symbols (e.g. "Buckshot Roulette"). The server will not include this field.
Trait Implementations§
Source§impl Clone for ClientCommand
impl Clone for ClientCommand
Source§fn clone(&self) -> ClientCommand
fn clone(&self) -> ClientCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientCommand
impl Debug for ClientCommand
Source§impl<'de> Deserialize<'de> for ClientCommand
impl<'de> Deserialize<'de> for ClientCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClientCommand
impl PartialEq for ClientCommand
Source§fn eq(&self, other: &ClientCommand) -> bool
fn eq(&self, other: &ClientCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClientCommand
impl Serialize for ClientCommand
impl StructuralPartialEq for ClientCommand
Auto Trait Implementations§
impl Freeze for ClientCommand
impl RefUnwindSafe for ClientCommand
impl Send for ClientCommand
impl Sync for ClientCommand
impl Unpin for ClientCommand
impl UnsafeUnpin for ClientCommand
impl UnwindSafe for ClientCommand
Blanket Implementations§
Source§impl<'de, T> Actions<'de> for Twhere
T: 'de + Deserialize<'de>,
impl<'de, T> Actions<'de> for Twhere
T: 'de + Deserialize<'de>,
fn deserialize<D>(
discriminant: &str,
de: D,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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