pub struct WeatherObservation { /* private fields */ }Expand description
Descriptive weather observation metadata.
Implementations§
Source§impl WeatherObservation
impl WeatherObservation
Sourcepub fn new(
id: WeatherObservationId,
kind: ObservationKind,
source: ObservationSource,
quality: ObservationQuality,
) -> Self
pub fn new( id: WeatherObservationId, kind: ObservationKind, source: ObservationSource, quality: ObservationQuality, ) -> Self
Creates descriptive weather observation metadata.
Sourcepub fn id(&self) -> &WeatherObservationId
pub fn id(&self) -> &WeatherObservationId
Returns the observation identifier.
Sourcepub fn kind(&self) -> &ObservationKind
pub fn kind(&self) -> &ObservationKind
Returns the observation kind.
Sourcepub fn source(&self) -> &ObservationSource
pub fn source(&self) -> &ObservationSource
Returns the descriptive observation source.
Sourcepub fn quality(&self) -> &ObservationQuality
pub fn quality(&self) -> &ObservationQuality
Returns the observation quality.
Trait Implementations§
Source§impl Clone for WeatherObservation
impl Clone for WeatherObservation
Source§fn clone(&self) -> WeatherObservation
fn clone(&self) -> WeatherObservation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeatherObservation
impl Debug for WeatherObservation
Source§impl PartialEq for WeatherObservation
impl PartialEq for WeatherObservation
impl Eq for WeatherObservation
impl StructuralPartialEq for WeatherObservation
Auto Trait Implementations§
impl Freeze for WeatherObservation
impl RefUnwindSafe for WeatherObservation
impl Send for WeatherObservation
impl Sync for WeatherObservation
impl Unpin for WeatherObservation
impl UnsafeUnpin for WeatherObservation
impl UnwindSafe for WeatherObservation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more