pub struct SmbiosType2Builder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> SmbiosType2Builder<S>
impl<S: State> SmbiosType2Builder<S>
Sourcepub fn build(self) -> SmbiosType2where
S: IsComplete,
pub fn build(self) -> SmbiosType2where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn manufacturer(
self,
value: String,
) -> SmbiosType2Builder<SetManufacturer<S>>where
S::Manufacturer: IsUnset,
pub fn manufacturer(
self,
value: String,
) -> SmbiosType2Builder<SetManufacturer<S>>where
S::Manufacturer: IsUnset,
Sourcepub fn maybe_manufacturer(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetManufacturer<S>>where
S::Manufacturer: IsUnset,
pub fn maybe_manufacturer(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetManufacturer<S>>where
S::Manufacturer: IsUnset,
Sourcepub fn product(self, value: String) -> SmbiosType2Builder<SetProduct<S>>where
S::Product: IsUnset,
pub fn product(self, value: String) -> SmbiosType2Builder<SetProduct<S>>where
S::Product: IsUnset,
Sourcepub fn maybe_product(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetProduct<S>>where
S::Product: IsUnset,
pub fn maybe_product(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetProduct<S>>where
S::Product: IsUnset,
Sourcepub fn version(self, value: String) -> SmbiosType2Builder<SetVersion<S>>where
S::Version: IsUnset,
pub fn version(self, value: String) -> SmbiosType2Builder<SetVersion<S>>where
S::Version: IsUnset,
Sourcepub fn maybe_version(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetVersion<S>>where
S::Version: IsUnset,
pub fn maybe_version(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetVersion<S>>where
S::Version: IsUnset,
Sourcepub fn serial(self, value: String) -> SmbiosType2Builder<SetSerial<S>>where
S::Serial: IsUnset,
pub fn serial(self, value: String) -> SmbiosType2Builder<SetSerial<S>>where
S::Serial: IsUnset,
Sourcepub fn maybe_serial(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetSerial<S>>where
S::Serial: IsUnset,
pub fn maybe_serial(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetSerial<S>>where
S::Serial: IsUnset,
Sourcepub fn asset(self, value: String) -> SmbiosType2Builder<SetAsset<S>>where
S::Asset: IsUnset,
pub fn asset(self, value: String) -> SmbiosType2Builder<SetAsset<S>>where
S::Asset: IsUnset,
Sourcepub fn maybe_asset(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetAsset<S>>where
S::Asset: IsUnset,
pub fn maybe_asset(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetAsset<S>>where
S::Asset: IsUnset,
Sourcepub fn location(self, value: String) -> SmbiosType2Builder<SetLocation<S>>where
S::Location: IsUnset,
pub fn location(self, value: String) -> SmbiosType2Builder<SetLocation<S>>where
S::Location: IsUnset,
Sourcepub fn maybe_location(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetLocation<S>>where
S::Location: IsUnset,
pub fn maybe_location(
self,
value: Option<String>,
) -> SmbiosType2Builder<SetLocation<S>>where
S::Location: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SmbiosType2Builder<S>
impl<S> RefUnwindSafe for SmbiosType2Builder<S>
impl<S> Send for SmbiosType2Builder<S>
impl<S> Sync for SmbiosType2Builder<S>
impl<S> Unpin for SmbiosType2Builder<S>
impl<S> UnwindSafe for SmbiosType2Builder<S>
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