pub struct Wind {
pub speed: f64,
pub direction: f64,
pub compass_direction: String,
pub gust: Option<f64>,
}Expand description
Represents a WeatherKit wind reading.
Fields§
§speed: f64Matches the WeatherKit speed value.
direction: f64Matches the WeatherKit direction value.
compass_direction: StringMatches the WeatherKit compass direction value.
gust: Option<f64>Matches the WeatherKit gust value.
Implementations§
Source§impl Wind
impl Wind
Sourcepub fn compass_direction_kind(&self) -> WindCompassDirection
pub fn compass_direction_kind(&self) -> WindCompassDirection
Returns the WeatherKit compass direction enum for this wind.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Wind
impl<'de> Deserialize<'de> for Wind
Source§fn 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
impl StructuralPartialEq for Wind
Auto Trait Implementations§
impl Freeze for Wind
impl RefUnwindSafe for Wind
impl Send for Wind
impl Sync for Wind
impl Unpin for Wind
impl UnsafeUnpin for Wind
impl UnwindSafe for Wind
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