pub struct WorkoutBuilder { /* private fields */ }Implementations§
Source§impl WorkoutBuilder
impl WorkoutBuilder
pub fn new(id: &str) -> Self
pub fn sport(self, sport: &str) -> Self
pub fn date(self, date: &str) -> Self
pub fn root(self, node: Node) -> Self
pub fn streams(self, streams: Streams) -> Self
pub fn laps(self, laps: Vec<Lap>) -> Self
pub fn meta(self, key: &str, value: Value) -> Self
pub fn build(self) -> Workout
Auto Trait Implementations§
impl Freeze for WorkoutBuilder
impl RefUnwindSafe for WorkoutBuilder
impl Send for WorkoutBuilder
impl Sync for WorkoutBuilder
impl Unpin for WorkoutBuilder
impl UnsafeUnpin for WorkoutBuilder
impl UnwindSafe for WorkoutBuilder
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