pub struct PlayerInfo {
pub id: PlayerId,
pub name: String,
pub auth_status: AuthenticationStatus,
pub connection_state: ConnectionState,
pub current_server: Option<ServerId>,
pub last_position: WorldCoordinate,
pub last_updated: DateTime<Utc>,
}Expand description
Basic player information tracked by Atlas.
Fields§
§id: PlayerIdUnique player identifier
name: StringPlayer display name
auth_status: AuthenticationStatusCurrent authentication status
connection_state: ConnectionStateCurrent connection state
current_server: Option<ServerId>Server the player is currently connected to
last_position: WorldCoordinateLast known position in world coordinates
last_updated: DateTime<Utc>Timestamp of last position update
Implementations§
Source§impl PlayerInfo
impl PlayerInfo
Sourcepub fn update_position(&mut self, position: WorldCoordinate)
pub fn update_position(&mut self, position: WorldCoordinate)
Updates the player’s position.
Trait Implementations§
Source§impl Clone for PlayerInfo
impl Clone for PlayerInfo
Source§fn clone(&self) -> PlayerInfo
fn clone(&self) -> PlayerInfo
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 PlayerInfo
impl Debug for PlayerInfo
Source§impl<'de> Deserialize<'de> for PlayerInfo
impl<'de> Deserialize<'de> for PlayerInfo
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
Auto Trait Implementations§
impl Freeze for PlayerInfo
impl RefUnwindSafe for PlayerInfo
impl Send for PlayerInfo
impl Sync for PlayerInfo
impl Unpin for PlayerInfo
impl UnsafeUnpin for PlayerInfo
impl UnwindSafe for PlayerInfo
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