pub struct DeviceInfoBuilder { /* private fields */ }Expand description
Builder for constructing DeviceInfo.
Implementations§
Source§impl DeviceInfoBuilder
impl DeviceInfoBuilder
Sourcepub fn manufacturer(self, manufacturer: impl Into<String>) -> Self
pub fn manufacturer(self, manufacturer: impl Into<String>) -> Self
Set the manufacturer name.
Sourcepub fn build(self) -> DeviceInfo
pub fn build(self) -> DeviceInfo
Build the DeviceInfo.
Trait Implementations§
Source§impl Clone for DeviceInfoBuilder
impl Clone for DeviceInfoBuilder
Source§fn clone(&self) -> DeviceInfoBuilder
fn clone(&self) -> DeviceInfoBuilder
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 moreSource§impl Debug for DeviceInfoBuilder
impl Debug for DeviceInfoBuilder
Source§impl Default for DeviceInfoBuilder
impl Default for DeviceInfoBuilder
Source§fn default() -> DeviceInfoBuilder
fn default() -> DeviceInfoBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceInfoBuilder
impl RefUnwindSafe for DeviceInfoBuilder
impl Send for DeviceInfoBuilder
impl Sync for DeviceInfoBuilder
impl Unpin for DeviceInfoBuilder
impl UnwindSafe for DeviceInfoBuilder
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