pub struct PlanetStatus {
pub latitude: f32,
pub longitude: f32,
pub altitude: Option<f32>,
pub heading: f32,
pub body_name: String,
pub planet_radius: f32,
}
Expand description
Part of the status that includes information about the planet that the player is close to.
Fields§
§latitude: f32
The current latitude position of the player for the nearest planet.
longitude: f32
The current longitude position of the player for the nearest planet.
altitude: Option<f32>
This is set to None if the player is currently on-foot.
heading: f32
The heading of the player in degrees, going from 0 to 360.
body_name: String
The name of the body the player is currently close to.
planet_radius: f32
The radius of the planet in meters.
Trait Implementations§
Source§impl Clone for PlanetStatus
impl Clone for PlanetStatus
Source§fn clone(&self) -> PlanetStatus
fn clone(&self) -> PlanetStatus
Returns a copy 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 PlanetStatus
impl Debug for PlanetStatus
Source§impl<'de> Deserialize<'de> for PlanetStatus
impl<'de> Deserialize<'de> for PlanetStatus
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 PlanetStatus
impl PartialEq for PlanetStatus
Source§impl Serialize for PlanetStatus
impl Serialize for PlanetStatus
impl StructuralPartialEq for PlanetStatus
Auto Trait Implementations§
impl Freeze for PlanetStatus
impl RefUnwindSafe for PlanetStatus
impl Send for PlanetStatus
impl Sync for PlanetStatus
impl Unpin for PlanetStatus
impl UnwindSafe for PlanetStatus
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