pub struct StationData {
pub temperature: i16,
pub humidity: u8,
pub wind_speed: u32,
pub gust_speed: u32,
pub rain: u32,
pub wind_direction: u8,
pub battery_low: bool,
pub last_change: u16,
}
Fields§
§temperature: i16
§humidity: u8
§wind_speed: u32
§gust_speed: u32
§rain: u32
§wind_direction: u8
§battery_low: bool
§last_change: u16
Trait Implementations§
Source§impl Clone for StationData
impl Clone for StationData
Source§fn clone(&self) -> StationData
fn clone(&self) -> StationData
Returns a copy 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 StationData
impl Debug for StationData
Source§impl Default for StationData
impl Default for StationData
Source§fn default() -> StationData
fn default() -> StationData
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for StationData
impl FromByteSlice for StationData
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> StationData
fn from_le_byte_slice(bytes: &[u8]) -> StationData
Deserialize the implementing type from a byte slice.
Source§impl Hash for StationData
impl Hash for StationData
Source§impl PartialEq for StationData
impl PartialEq for StationData
impl Copy for StationData
impl Eq for StationData
impl StructuralPartialEq for StationData
Auto Trait Implementations§
impl Freeze for StationData
impl RefUnwindSafe for StationData
impl Send for StationData
impl Sync for StationData
impl Unpin for StationData
impl UnwindSafe for StationData
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