Struct spaceapi::Location [] [src]

pub struct Location {
    pub address: Optional<String>,
    pub lat: f64,
    pub lon: f64,
}

Fields

address: Optional<String> lat: f64 lon: f64

Trait Implementations

impl Decodable for Location
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Location, __D::Error>

impl PartialEq for Location
[src]

fn eq(&self, __arg_0: &Location) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Location) -> bool

This method tests for !=.

impl Clone for Location
[src]

fn clone(&self) -> Location

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Location
[src]

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

Formats the value using the given formatter.

impl ToJson for Location
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON