#[non_exhaustive]pub struct NavPoint {
pub ident: String,
pub kind: NavPointKind,
pub position: GeoPoint,
pub name: Option<String>,
pub region: Option<String>,
}Expand description
One published navigation point with WGS84 coordinates.
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.ident: StringPublished identifier.
kind: NavPointKindPoint family.
position: GeoPointWGS84 coordinates.
name: Option<String>Human-readable published name when present.
region: Option<String>ICAO region of the point (e.g. "K2"), when the source provides
one — disambiguates idents that recur across regions.
Implementations§
Sourcepub fn new(
ident: impl Into<String>,
kind: NavPointKind,
position: GeoPoint,
) -> Self
pub fn new( ident: impl Into<String>, kind: NavPointKind, position: GeoPoint, ) -> Self
A navigation point with no display name or region.
Sourcepub fn with_region(self, region: Option<String>) -> Self
pub fn with_region(self, region: Option<String>) -> Self
Set the ICAO region.
Trait Implementations§
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§
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