pub struct GeoCoordinates {
pub meta: Bo4eMeta,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
}Expand description
Geographic coordinates (latitude/longitude).
German: Geokoordinaten
§Example
use bo4e_core::com::GeoCoordinates;
// Coordinates for Cologne Cathedral
let coords = GeoCoordinates {
latitude: Some(50.9413),
longitude: Some(6.9583),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
latitude: Option<f64>Latitude in decimal degrees (Breitengrad)
longitude: Option<f64>Longitude in decimal degrees (Laengengrad)
Trait Implementations§
Source§impl Bo4eObject for GeoCoordinates
impl Bo4eObject for GeoCoordinates
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for GeoCoordinates
impl Clone for GeoCoordinates
Source§fn clone(&self) -> GeoCoordinates
fn clone(&self) -> GeoCoordinates
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 GeoCoordinates
impl Debug for GeoCoordinates
Source§impl Default for GeoCoordinates
impl Default for GeoCoordinates
Source§fn default() -> GeoCoordinates
fn default() -> GeoCoordinates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeoCoordinates
impl<'de> Deserialize<'de> for GeoCoordinates
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 GeoCoordinates
impl PartialEq for GeoCoordinates
Source§impl Serialize for GeoCoordinates
impl Serialize for GeoCoordinates
impl StructuralPartialEq for GeoCoordinates
Auto Trait Implementations§
impl Freeze for GeoCoordinates
impl RefUnwindSafe for GeoCoordinates
impl Send for GeoCoordinates
impl Sync for GeoCoordinates
impl Unpin for GeoCoordinates
impl UnwindSafe for GeoCoordinates
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