pub struct WeatherRecordBuilder { /* private fields */ }Implementations§
Source§impl WeatherRecordBuilder
impl WeatherRecordBuilder
pub fn new() -> Self
pub fn station_id(self, id: u32) -> Self
pub fn station_name(self, name: String) -> Self
pub fn date(self, date: NaiveDate) -> Self
pub fn coordinates(self, latitude: f64, longitude: f64) -> Self
pub fn temp_min(self, temp: f32) -> Self
pub fn temp_max(self, temp: f32) -> Self
pub fn temp_avg(self, temp: f32) -> Self
pub fn temperatures(self, min: f32, avg: f32, max: f32) -> Self
pub fn precipitation(self, precip: f32) -> Self
pub fn wind_speed(self, speed: f32) -> Self
pub fn temp_quality(self, quality: String) -> Self
pub fn precip_quality(self, quality: String) -> Self
pub fn wind_quality(self, quality: String) -> Self
pub fn build(self) -> Result<WeatherRecord>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WeatherRecordBuilder
impl RefUnwindSafe for WeatherRecordBuilder
impl Send for WeatherRecordBuilder
impl Sync for WeatherRecordBuilder
impl Unpin for WeatherRecordBuilder
impl UnwindSafe for WeatherRecordBuilder
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
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>
Converts
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>
Converts
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 more