pub struct StationBuilder { /* private fields */ }Expand description
Builder for Station.
Implementations§
Source§impl StationBuilder
impl StationBuilder
pub fn latitude(self, lat: f64) -> Self
pub fn longitude(self, lon: f64) -> Self
pub fn elevation(self, elev: f64) -> Self
pub fn site_name(self, name: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn start_date(self, date: DateTime<Utc>) -> Self
pub fn end_date(self, date: DateTime<Utc>) -> Self
Sourcepub fn channel(
self,
code: impl Into<String>,
location_code: impl Into<String>,
f: impl FnOnce(ChannelBuilder) -> ChannelBuilder,
) -> Self
pub fn channel( self, code: impl Into<String>, location_code: impl Into<String>, f: impl FnOnce(ChannelBuilder) -> ChannelBuilder, ) -> Self
Add a channel using a closure-based builder.
Channel lat/lon/elevation default to the station’s values if not set.
Auto Trait Implementations§
impl Freeze for StationBuilder
impl RefUnwindSafe for StationBuilder
impl Send for StationBuilder
impl Sync for StationBuilder
impl Unpin for StationBuilder
impl UnsafeUnpin for StationBuilder
impl UnwindSafe for StationBuilder
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