Enum rs_es::units::Location [] [src]

pub enum Location {
    LatLon(f64, f64),
    GeoHash(String),
}

Representing a geographic location

Variants

LatLon
GeoHash

Trait Implementations

impl<'a> From<&'a Json> for Location

fn from(from: &'a Json) -> Location

impl From<(f64, f64)> for Location

fn from(from: (f64, f64)) -> Location

impl From<String> for Location

fn from(from: String) -> Location

impl ToJson for Location

fn to_json(&self) -> Json

Derived Implementations

impl Debug for Location

fn fmt(&self, __arg_0: &mut Formatter) -> Result