#[non_exhaustive]pub struct WeatherForecastSample {
pub session_type: u8,
pub time_offset: u8,
pub weather: Weather,
pub track_temperature: i8,
pub track_temperature_change: TemperatureChange,
pub air_temperature: i8,
pub air_temperature_change: TemperatureChange,
pub rain_percentage: u8,
}Expand description
Weather forecast sample for a given session.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_type: u8Session’s type.
See session_type
for possible values.
time_offset: u8Time in minutes the forecast is for.
weather: WeatherForecasted weather.
track_temperature: i8Track temperature in degrees Celsius.
track_temperature_change: TemperatureChangeTrack temperature change.
air_temperature: i8Air temperature in degrees Celsius.
air_temperature_change: TemperatureChangeAir temperature change.
rain_percentage: u8Chance of rain.
Trait Implementations§
Source§impl BinRead for WeatherForecastSample
impl BinRead for WeatherForecastSample
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for WeatherForecastSample
impl Clone for WeatherForecastSample
Source§fn clone(&self) -> WeatherForecastSample
fn clone(&self) -> WeatherForecastSample
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 WeatherForecastSample
impl Debug for WeatherForecastSample
Source§impl<'de> Deserialize<'de> for WeatherForecastSample
impl<'de> Deserialize<'de> for WeatherForecastSample
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
Source§impl Ord for WeatherForecastSample
impl Ord for WeatherForecastSample
Source§fn cmp(&self, other: &WeatherForecastSample) -> Ordering
fn cmp(&self, other: &WeatherForecastSample) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WeatherForecastSample
impl PartialEq for WeatherForecastSample
Source§impl PartialOrd for WeatherForecastSample
impl PartialOrd for WeatherForecastSample
Source§impl ReadEndian for WeatherForecastSample
impl ReadEndian for WeatherForecastSample
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for WeatherForecastSample
impl Serialize for WeatherForecastSample
impl Copy for WeatherForecastSample
impl Eq for WeatherForecastSample
impl StructuralPartialEq for WeatherForecastSample
Auto Trait Implementations§
impl Freeze for WeatherForecastSample
impl RefUnwindSafe for WeatherForecastSample
impl Send for WeatherForecastSample
impl Sync for WeatherForecastSample
impl Unpin for WeatherForecastSample
impl UnwindSafe for WeatherForecastSample
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