pub struct ClientUpdate {
pub id: u32,
pub name: String,
pub company_id: u8,
}
Expand description
Client update details on a specific client (e.g. after rename or move).
Fields§
§id: u32
ID of the client.
name: String
Name of the client.
company_id: u8
ID of the company the client is playing as (255 for spectators).
Trait Implementations§
Source§impl Clone for ClientUpdate
impl Clone for ClientUpdate
Source§fn clone(&self) -> ClientUpdate
fn clone(&self) -> ClientUpdate
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 Debug for ClientUpdate
impl Debug for ClientUpdate
Source§impl<'de> Deserialize<'de> for ClientUpdate
impl<'de> Deserialize<'de> for ClientUpdate
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 ClientUpdate
impl PartialEq for ClientUpdate
Source§impl Serialize for ClientUpdate
impl Serialize for ClientUpdate
impl Eq for ClientUpdate
impl StructuralPartialEq for ClientUpdate
Auto Trait Implementations§
impl Freeze for ClientUpdate
impl RefUnwindSafe for ClientUpdate
impl Send for ClientUpdate
impl Sync for ClientUpdate
impl Unpin for ClientUpdate
impl UnwindSafe for ClientUpdate
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