pub struct MapPlayer {
pub key: PlayerKey,
pub name: String,
pub position: Option<[f64; 3]>,
pub waypoint: Option<[f64; 3]>,
}Available on crate feature
unstable only.Expand description
Fields§
§key: PlayerKeyThe same for the same account in every session, as
Player::key; a public map may leave
it out.
name: StringThe name the client sent; untrusted, may repeat between players.
position: Option<[f64; 3]>Where the character is, in metres; None while it has no place,
such as while it loads.
waypoint: Option<[f64; 3]>Where the player’s waypoint is, in metres, while it is on.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapPlayer
impl<'de> Deserialize<'de> for MapPlayer
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
impl StructuralPartialEq for MapPlayer
Auto Trait Implementations§
impl Freeze for MapPlayer
impl RefUnwindSafe for MapPlayer
impl Send for MapPlayer
impl Sync for MapPlayer
impl Unpin for MapPlayer
impl UnsafeUnpin for MapPlayer
impl UnwindSafe for MapPlayer
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