pub struct DriverInfoBuilder { /* private fields */ }
Expand description
Builder for DriverInfo
.
Implementations§
Source§impl DriverInfoBuilder
impl DriverInfoBuilder
pub fn attributes(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn detected(&mut self, value: bool) -> &mut Self
pub fn healthy(&mut self, value: bool) -> &mut Self
pub fn health_description(&mut self, value: String) -> &mut Self
pub fn update_time(&mut self, value: DateTime<Utc>) -> &mut Self
Sourcepub fn build(&self) -> Result<DriverInfo, DriverInfoBuilderError>
pub fn build(&self) -> Result<DriverInfo, DriverInfoBuilderError>
Trait Implementations§
Source§impl Clone for DriverInfoBuilder
impl Clone for DriverInfoBuilder
Source§fn clone(&self) -> DriverInfoBuilder
fn clone(&self) -> DriverInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DriverInfoBuilder
impl RefUnwindSafe for DriverInfoBuilder
impl Send for DriverInfoBuilder
impl Sync for DriverInfoBuilder
impl Unpin for DriverInfoBuilder
impl UnwindSafe for DriverInfoBuilder
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