pub struct PositionReport {Show 15 fields
pub run_status: bool,
pub fix_status: bool,
pub utc_time: String,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub msl_altitude: Option<f64>,
pub ground_speed: Option<f32>,
pub ground_course: Option<f32>,
pub fix_mode: FixStatus,
pub hdop: Option<f32>,
pub pdop: Option<f32>,
pub vdop: Option<f32>,
pub gps_in_view: Option<u8>,
pub gnss_used: Option<u8>,
pub glonass_in_view: Option<u8>,
}Expand description
Represents a GNSS position report with optional fields for satellite info.
Fields§
§run_status: boolIndicates whether the GNSS receiver is currently running.
fix_status: boolWhether a valid fix has been obtained.
utc_time: StringUTC time of the position report in ISO 8601 format.
latitude: Option<f64>Latitude in decimal degrees.
longitude: Option<f64>Longitude in decimal degrees.
msl_altitude: Option<f64>Mean sea level altitude in meters.
ground_speed: Option<f32>Ground speed in meters per second.
ground_course: Option<f32>Ground course in degrees.
fix_mode: FixStatusFix mode indicating 2D/3D fix or unknown.
hdop: Option<f32>Horizontal Dilution of Precision.
pdop: Option<f32>Position Dilution of Precision.
vdop: Option<f32>Vertical Dilution of Precision.
gps_in_view: Option<u8>Number of GPS satellites in view.
gnss_used: Option<u8>Number of GNSS satellites used in the fix.
glonass_in_view: Option<u8>Number of GLONASS satellites in view.
Trait Implementations§
Source§impl Clone for PositionReport
impl Clone for PositionReport
Source§fn clone(&self) -> PositionReport
fn clone(&self) -> PositionReport
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 ComposeSchema for PositionReport
impl ComposeSchema for PositionReport
Source§impl Debug for PositionReport
impl Debug for PositionReport
Source§impl<'de> Deserialize<'de> for PositionReport
impl<'de> Deserialize<'de> for PositionReport
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 Display for PositionReport
impl Display for PositionReport
Source§impl PartialEq for PositionReport
impl PartialEq for PositionReport
Source§impl Serialize for PositionReport
impl Serialize for PositionReport
Source§impl ToSchema for PositionReport
impl ToSchema for PositionReport
impl StructuralPartialEq for PositionReport
Auto Trait Implementations§
impl Freeze for PositionReport
impl RefUnwindSafe for PositionReport
impl Send for PositionReport
impl Sync for PositionReport
impl Unpin for PositionReport
impl UnwindSafe for PositionReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more