#[non_exhaustive]pub struct PlayerBase {
pub name: String,
pub base_type: BaseType,
pub address: GalacticAddress,
pub position: [f32; 3],
pub owner_uid: Option<String>,
}Expand description
A player-owned base at a specific galactic location.
The galaxy (reality index) is encoded in the address field.
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.name: String§base_type: BaseType§address: GalacticAddress§position: [f32; 3]Position in local planet coordinates [x, y, z].
owner_uid: Option<String>Platform-specific user ID.
Implementations§
Source§impl PlayerBase
impl PlayerBase
Trait Implementations§
Source§impl Clone for PlayerBase
impl Clone for PlayerBase
Source§fn clone(&self) -> PlayerBase
fn clone(&self) -> PlayerBase
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 PlayerBase
impl Debug for PlayerBase
Source§impl<'de> Deserialize<'de> for PlayerBase
impl<'de> Deserialize<'de> for PlayerBase
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 PlayerBase
impl PartialEq for PlayerBase
Source§impl Serialize for PlayerBase
impl Serialize for PlayerBase
impl StructuralPartialEq for PlayerBase
Auto Trait Implementations§
impl Freeze for PlayerBase
impl RefUnwindSafe for PlayerBase
impl Send for PlayerBase
impl Sync for PlayerBase
impl Unpin for PlayerBase
impl UnsafeUnpin for PlayerBase
impl UnwindSafe for PlayerBase
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