#[non_exhaustive]pub struct ComponentDescription { /* private fields */ }
Expand description
A summary description of an component within a host inventory
Implementations§
source§impl ComponentDescription
impl ComponentDescription
sourcepub fn annotations(&self) -> Option<&BTreeMap<String, String>>
pub fn annotations(&self) -> Option<&BTreeMap<String, String>>
Get the annotations of the component
sourcepub fn max_instances(&self) -> u32
pub fn max_instances(&self) -> u32
Get the revision of the component
pub fn builder() -> ComponentDescriptionBuilder
Trait Implementations§
source§impl Clone for ComponentDescription
impl Clone for ComponentDescription
source§fn clone(&self) -> ComponentDescription
fn clone(&self) -> ComponentDescription
Returns a copy 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 ComponentDescription
impl Debug for ComponentDescription
source§impl Default for ComponentDescription
impl Default for ComponentDescription
source§fn default() -> ComponentDescription
fn default() -> ComponentDescription
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ComponentDescription
impl<'de> Deserialize<'de> for ComponentDescription
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ComponentDescription
impl PartialEq for ComponentDescription
source§impl Serialize for ComponentDescription
impl Serialize for ComponentDescription
impl Eq for ComponentDescription
impl StructuralPartialEq for ComponentDescription
Auto Trait Implementations§
impl Freeze for ComponentDescription
impl RefUnwindSafe for ComponentDescription
impl Send for ComponentDescription
impl Sync for ComponentDescription
impl Unpin for ComponentDescription
impl UnwindSafe for ComponentDescription
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.