Struct weather_underground::Observation
source · [−]pub struct Observation {Show 13 fields
pub country: String,
pub epoch: u64,
pub humidity: Option<f64>,
pub lat: f64,
pub lon: f64,
pub imperial: Option<ObservationValue>,
pub metric: Option<ObservationValue>,
pub neighborhood: String,
pub obs_time_local: String,
pub obs_time_utc: String,
pub solar_radiation: Option<f64>,
pub uv: Option<f64>,
pub winddir: Option<f64>,
}
Expand description
Object that represents an observation
Fields
country: String
epoch: u64
humidity: Option<f64>
lat: f64
lon: f64
imperial: Option<ObservationValue>
metric: Option<ObservationValue>
neighborhood: String
obs_time_local: String
obs_time_utc: String
solar_radiation: Option<f64>
uv: Option<f64>
winddir: Option<f64>
Implementations
sourceimpl Observation
impl Observation
pub fn values(&self) -> Option<&ObservationValue>
Trait Implementations
sourceimpl Debug for Observation
impl Debug for Observation
sourceimpl<'de> Deserialize<'de> for Observation
impl<'de> Deserialize<'de> for Observation
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Observation
impl Serialize for Observation
Auto Trait Implementations
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnwindSafe for Observation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more