[][src]Struct ichen_openprotocol::GeoLocation

pub struct GeoLocation {
    pub geo_latitude: f64,
    pub geo_longitude: f64,
}

A data structure containing a single physical geo-location.

Fields

geo_latitude: f64

Latitude

geo_longitude: f64

Longitude

Methods

impl GeoLocation[src]

pub fn new(latitude: f64, longitude: f64) -> Self[src]

pub fn validate(&self) -> Result<'static, ()>[src]

Validate the data structure.

Trait Implementations

impl PartialEq<GeoLocation> for GeoLocation[src]

impl Debug for GeoLocation[src]

impl Serialize for GeoLocation[src]

impl<'de> Deserialize<'de> for GeoLocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]