pub struct NetworkBuilder { /* private fields */ }Expand description
Builder for Network.
Implementations§
Source§impl NetworkBuilder
impl NetworkBuilder
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set the network description.
Sourcepub fn start_date(self, date: DateTime<Utc>) -> Self
pub fn start_date(self, date: DateTime<Utc>) -> Self
Set the start date.
Sourcepub fn station(
self,
code: impl Into<String>,
f: impl FnOnce(StationBuilder) -> StationBuilder,
) -> Self
pub fn station( self, code: impl Into<String>, f: impl FnOnce(StationBuilder) -> StationBuilder, ) -> Self
Add a station using a closure-based builder.
Auto Trait Implementations§
impl Freeze for NetworkBuilder
impl RefUnwindSafe for NetworkBuilder
impl Send for NetworkBuilder
impl Sync for NetworkBuilder
impl Unpin for NetworkBuilder
impl UnsafeUnpin for NetworkBuilder
impl UnwindSafe for NetworkBuilder
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