pub struct ConsolidatedRecordBuilder { /* private fields */ }Implementations§
Source§impl ConsolidatedRecordBuilder
impl ConsolidatedRecordBuilder
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 temperatures(self, min: f32, avg: f32, max: f32) -> Self
pub fn quality_flags(self, flags: String) -> Self
pub fn build(self) -> Result<ConsolidatedRecord>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsolidatedRecordBuilder
impl RefUnwindSafe for ConsolidatedRecordBuilder
impl Send for ConsolidatedRecordBuilder
impl Sync for ConsolidatedRecordBuilder
impl Unpin for ConsolidatedRecordBuilder
impl UnwindSafe for ConsolidatedRecordBuilder
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