#[non_exhaustive]pub struct PersistentPlayerBase {Show 13 fields
pub base_version: u32,
pub galactic_address: PackedGalacticAddress,
pub position: [f32; 3],
pub forward: [f32; 3],
pub last_update_timestamp: u64,
pub objects: Vec<Value>,
pub rid: String,
pub owner: OwnershipData,
pub name: String,
pub base_type: BaseTypeWrapper,
pub last_edited_by_id: String,
pub last_edited_by_username: String,
pub game_mode: Option<GameModeWrapper>,
}Expand description
A player-owned base from PersistentPlayerBases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.base_version: u32§galactic_address: PackedGalacticAddress§position: [f32; 3]§forward: [f32; 3]§last_update_timestamp: u64§objects: Vec<Value>Base objects — stored as opaque JSON.
rid: String§owner: OwnershipData§name: String§base_type: BaseTypeWrapper§last_edited_by_id: String§last_edited_by_username: String§game_mode: Option<GameModeWrapper>Implementations§
Source§impl PersistentPlayerBase
impl PersistentPlayerBase
Sourcepub fn to_core_base(&self) -> PlayerBase
pub fn to_core_base(&self) -> PlayerBase
Convert to an nms_core::PlayerBase.
Trait Implementations§
Source§impl Clone for PersistentPlayerBase
impl Clone for PersistentPlayerBase
Source§fn clone(&self) -> PersistentPlayerBase
fn clone(&self) -> PersistentPlayerBase
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 PersistentPlayerBase
impl Debug for PersistentPlayerBase
Source§impl<'de> Deserialize<'de> for PersistentPlayerBase
impl<'de> Deserialize<'de> for PersistentPlayerBase
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 PersistentPlayerBase
impl RefUnwindSafe for PersistentPlayerBase
impl Send for PersistentPlayerBase
impl Sync for PersistentPlayerBase
impl Unpin for PersistentPlayerBase
impl UnsafeUnpin for PersistentPlayerBase
impl UnwindSafe for PersistentPlayerBase
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