Struct wick_config::v0::ComponentDefinition
source · pub struct ComponentDefinition {
pub id: String,
pub data: Option<HashMap<String, Value>>,
}Expand description
A single component definition.
Fields§
§id: StringThe ID of the component (i.e. the alias, key, or namespace).
data: Option<HashMap<String, Value>>Data to associate with the reference.
Trait Implementations§
source§impl Clone for ComponentDefinition
impl Clone for ComponentDefinition
source§fn clone(&self) -> ComponentDefinition
fn clone(&self) -> ComponentDefinition
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 ComponentDefinition
impl Debug for ComponentDefinition
source§impl Default for ComponentDefinition
impl Default for ComponentDefinition
source§fn default() -> ComponentDefinition
fn default() -> ComponentDefinition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ComponentDefinition
impl<'de> Deserialize<'de> for ComponentDefinition
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 FromStr for ComponentDefinition
impl FromStr for ComponentDefinition
source§impl PartialEq<ComponentDefinition> for ComponentDefinition
impl PartialEq<ComponentDefinition> for ComponentDefinition
source§fn eq(&self, other: &ComponentDefinition) -> bool
fn eq(&self, other: &ComponentDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ComponentDefinition
impl Serialize for ComponentDefinition
source§impl TryFrom<ComponentDefinition> for InstanceReference
impl TryFrom<ComponentDefinition> for InstanceReference
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ComponentDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ComponentDefinition
impl Send for ComponentDefinition
impl Sync for ComponentDefinition
impl Unpin for ComponentDefinition
impl UnwindSafe for ComponentDefinition
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