Struct uddf_sdk::entities::dive_computer::builder::DiveComputerBuilder
source · pub struct DiveComputerBuilder { /* private fields */ }Expand description
Builder for creating DiveComputer instances.
Implementations§
source§impl DiveComputerBuilder
impl DiveComputerBuilder
sourcepub fn manufacturer(self, manufacturer: Manufacturer) -> Self
pub fn manufacturer(self, manufacturer: Manufacturer) -> Self
Set the manufacturer.
sourcepub fn serial_number(self, serial_number: String) -> Self
pub fn serial_number(self, serial_number: String) -> Self
Set the serial number.
sourcepub fn build(self) -> Result<DiveComputer, &'static str>
pub fn build(self) -> Result<DiveComputer, &'static str>
Build the final DiveComputer object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiveComputerBuilder
impl RefUnwindSafe for DiveComputerBuilder
impl Send for DiveComputerBuilder
impl Sync for DiveComputerBuilder
impl Unpin for DiveComputerBuilder
impl UnwindSafe for DiveComputerBuilder
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