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