pub struct ComponentDescription {
pub id: ComponentId,
pub image_ref: String,
pub name: Option<String>,
pub annotations: Option<HashMap<String, String>>,
pub revision: i32,
pub max_instances: u32,
}
Expand description
A summary description of an component within a host inventory
Fields§
§id: ComponentId
The unique component identifier for this component
image_ref: String
Image reference for this component
name: Option<String>
Name of this component, if one exists
annotations: Option<HashMap<String, String>>
The annotations that were used in the start request that produced this component instance
revision: i32
The revision number for this component instance
max_instances: u32
The maximum number of concurrent requests this instance can handle
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§fn eq(&self, other: &ComponentDescription) -> bool
fn eq(&self, other: &ComponentDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.