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

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

impl PartialEq for TemperatureSensor
[src]

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

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

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

This method tests for !=.

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