pub struct ClientInfo {
pub id: u32,
pub address: String,
pub name: String,
pub language: u8,
pub date_joined: Date,
pub company_id: u8,
}
Expand description
Client information of a specific client.
Fields§
§id: u32
ID of the client.
address: String
Network address of the client.
name: String
Name of the client.
language: u8
Language of the client.
date_joined: Date
Date the client joined the game.
company_id: u8
ID of the company the client is playing as (255 for spectators).
Trait Implementations§
Source§impl Clone for ClientInfo
impl Clone for ClientInfo
Source§fn clone(&self) -> ClientInfo
fn clone(&self) -> ClientInfo
Returns a duplicate 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 ClientInfo
impl Debug for ClientInfo
Source§impl<'de> Deserialize<'de> for ClientInfo
impl<'de> Deserialize<'de> for ClientInfo
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 ClientInfo
impl PartialEq for ClientInfo
Source§impl Serialize for ClientInfo
impl Serialize for ClientInfo
impl Eq for ClientInfo
impl StructuralPartialEq for ClientInfo
Auto Trait Implementations§
impl Freeze for ClientInfo
impl RefUnwindSafe for ClientInfo
impl Send for ClientInfo
impl Sync for ClientInfo
impl Unpin for ClientInfo
impl UnwindSafe for ClientInfo
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