Struct smbioslib::SMBiosStringProperty
source · [−]pub struct SMBiosStringProperty<'a> { /* private fields */ }
Expand description
String Property (Type 46)
This structure defines a string property for another structure. This allows adding string properties that are common to several structures without having to modify the definitions of these structures. Multiple type 46 structures can add string properties to the same parent structure.
NOTE: This structure type was added in version 3.5 of this specification.
Compliant with: DMTF SMBIOS Reference Specification 3.5.0 (DSP0134) Document Date: 2021-09-15
Implementations
sourceimpl<'a> SMBiosStringProperty<'a>
impl<'a> SMBiosStringProperty<'a>
sourcepub fn string_property_id(&self) -> Option<StringPropertyIdData>
pub fn string_property_id(&self) -> Option<StringPropertyIdData>
String Property Id
sourcepub fn string_property_value(&self) -> SMBiosString
pub fn string_property_value(&self) -> SMBiosString
String Property Value
sourcepub fn parent_handle(&self) -> Option<Handle>
pub fn parent_handle(&self) -> Option<Handle>
Parent Handle
Handle corresponding to the structure this string property applies to
Trait Implementations
sourceimpl Debug for SMBiosStringProperty<'_>
impl Debug for SMBiosStringProperty<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosStringProperty<'a>
impl<'a> SMBiosStruct<'a> for SMBiosStringProperty<'a>
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type Read more
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.
sourceimpl Serialize for SMBiosStringProperty<'_>
impl Serialize for SMBiosStringProperty<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SMBiosStringProperty<'a>
impl<'a> Send for SMBiosStringProperty<'a>
impl<'a> Sync for SMBiosStringProperty<'a>
impl<'a> Unpin for SMBiosStringProperty<'a>
impl<'a> UnwindSafe for SMBiosStringProperty<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more