Struct spaceapi::sensors::TemperatureSensor [] [src]

pub struct TemperatureSensor {
    pub unit: String,
    pub location: String,
    pub name: Optional<String>,
    pub description: Optional<String>,
    pub value: f64,
}

Fields

unit: String location: String name: Optional<String> description: Optional<String> value: f64

Trait Implementations

impl Clone for TemperatureSensor
[src]

fn clone(&self) -> TemperatureSensor

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 TemperatureSensor
[src]

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

Formats the value using the given formatter.

impl ToJson for TemperatureSensor
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON