Struct WeatherObservation
pub struct WeatherObservation { /* private fields */ }Expand description
Descriptive weather observation metadata.
Implementations§
§impl WeatherObservation
impl WeatherObservation
pub fn new(
id: WeatherObservationId,
kind: ObservationKind,
source: ObservationSource,
quality: ObservationQuality,
) -> WeatherObservation
pub fn new( id: WeatherObservationId, kind: ObservationKind, source: ObservationSource, quality: ObservationQuality, ) -> WeatherObservation
Creates descriptive weather observation metadata.
pub fn id(&self) -> &WeatherObservationId
pub fn id(&self) -> &WeatherObservationId
Returns the observation identifier.
pub fn kind(&self) -> &ObservationKind
pub fn kind(&self) -> &ObservationKind
Returns the observation kind.
pub fn source(&self) -> &ObservationSource
pub fn source(&self) -> &ObservationSource
Returns the descriptive observation source.
pub fn quality(&self) -> &ObservationQuality
pub fn quality(&self) -> &ObservationQuality
Returns the observation quality.
Trait Implementations§
§impl Clone for WeatherObservation
impl Clone for WeatherObservation
§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 more§impl Debug for WeatherObservation
impl Debug for WeatherObservation
§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