pub struct PastObservationData {Show 45 fields
pub tdz: String,
pub aifstime_local: String,
pub aifstime_utc: String,
pub air_temp: f32,
pub apparent_t: f32,
pub cloud: String,
pub cloud_base_m: Option<u32>,
pub cloud_oktas: Option<u32>,
pub cloud_type: String,
pub cloud_type_id: Option<String>,
pub delta_t: f32,
pub dewpt: f32,
pub duration_from_local_9am_date: i64,
pub gust_kmh: i64,
pub gust_kt: i64,
pub history_product: String,
pub lat: f64,
pub local_9am_date_time: String,
pub local_9am_date_time_utc: String,
pub lon: f64,
pub name: String,
pub press: f64,
pub press_msl: f64,
pub press_qnh: f64,
pub press_tend: String,
pub rain_hour: f64,
pub rain_ten: f64,
pub rain_trace: String,
pub rain_trace_time: String,
pub rain_trace_time_utc: String,
pub rel_hum: i64,
pub sea_state: String,
pub sort_order: i64,
pub swell_dir_worded: String,
pub swell_height: Option<f64>,
pub swell_period: Option<i64>,
pub time_zone_name: String,
pub vis_km: String,
pub weather: String,
pub wind_dir: String,
pub wind_dir_deg: i64,
pub wind_spd_kmh: i64,
pub wind_spd_kt: i64,
pub wind_src: String,
pub wmo: i64,
}Fields§
§tdz: String§aifstime_local: String§aifstime_utc: String§air_temp: f32§apparent_t: f32§cloud: String§cloud_base_m: Option<u32>§cloud_oktas: Option<u32>§cloud_type: String§cloud_type_id: Option<String>§delta_t: f32§dewpt: f32§duration_from_local_9am_date: i64§gust_kmh: i64§gust_kt: i64§history_product: String§lat: f64§local_9am_date_time: String§local_9am_date_time_utc: String§lon: f64§name: String§press: f64§press_msl: f64§press_qnh: f64§press_tend: String§rain_hour: f64§rain_ten: f64§rain_trace: String§rain_trace_time: String§rain_trace_time_utc: String§rel_hum: i64§sea_state: String§sort_order: i64§swell_dir_worded: String§swell_height: Option<f64>§swell_period: Option<i64>§time_zone_name: String§vis_km: String§weather: String§wind_dir: String§wind_dir_deg: i64§wind_spd_kmh: i64§wind_spd_kt: i64§wind_src: String§wmo: i64Trait Implementations§
Source§impl Debug for PastObservationData
impl Debug for PastObservationData
Source§impl<'de> Deserialize<'de> for PastObservationData
impl<'de> Deserialize<'de> for PastObservationData
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>,
Auto Trait Implementations§
impl Freeze for PastObservationData
impl RefUnwindSafe for PastObservationData
impl Send for PastObservationData
impl Sync for PastObservationData
impl Unpin for PastObservationData
impl UnwindSafe for PastObservationData
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);