Enum wick_config::config::ImportDefinition
source · pub enum ImportDefinition {
Component(ComponentDefinition),
Types(TypesComponent),
}Expand description
The kinds of collections that can operate in a flow.
Variants§
Implementations§
source§impl ImportDefinition
impl ImportDefinition
sourcepub const fn is_reference(&self) -> bool
pub const fn is_reference(&self) -> bool
Returns true if the definition is a reference to another component.
sourcepub const fn component(component: ComponentDefinition) -> Self
pub const fn component(component: ComponentDefinition) -> Self
Initialize a new ImportDefinition for the specified config::ComponentDefinition.
sourcepub const fn types(component: TypesComponent) -> Self
pub const fn types(component: TypesComponent) -> Self
Initialize a new ImportDefinition for the specified config::components::TypesComponent.
sourcepub fn config(&self) -> Option<&RuntimeConfig>
pub fn config(&self) -> Option<&RuntimeConfig>
Get the configuration associated with this import.
Trait Implementations§
source§impl AssetManager for ImportDefinition
impl AssetManager for ImportDefinition
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
source§impl Clone for ImportDefinition
impl Clone for ImportDefinition
source§fn clone(&self) -> ImportDefinition
fn clone(&self) -> ImportDefinition
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 ImportDefinition
impl Debug for ImportDefinition
source§impl From<ComponentDefinition> for ImportDefinition
impl From<ComponentDefinition> for ImportDefinition
source§fn from(value: ComponentDefinition) -> Self
fn from(value: ComponentDefinition) -> Self
Converts to this type from the input type.
source§impl From<TypesComponent> for ImportDefinition
impl From<TypesComponent> for ImportDefinition
source§fn from(value: TypesComponent) -> Self
fn from(value: TypesComponent) -> Self
Converts to this type from the input type.
source§impl PartialEq<ImportDefinition> for ImportDefinition
impl PartialEq<ImportDefinition> for ImportDefinition
source§fn eq(&self, other: &ImportDefinition) -> bool
fn eq(&self, other: &ImportDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ImportDefinition
impl Serialize for ImportDefinition
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.
source§impl TryFrom<ImportDefinition> for ComponentDefinition
impl TryFrom<ImportDefinition> for ComponentDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<ImportDefinition> for ImportDefinition
impl TryFrom<ImportDefinition> for ImportDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<ImportDefinition> for ImportDefinition
impl TryFrom<ImportDefinition> for ImportDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<ImportDefinition> for TypesComponent
impl TryFrom<ImportDefinition> for TypesComponent
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ImportDefinition
Auto Trait Implementations§
impl !RefUnwindSafe for ImportDefinition
impl Send for ImportDefinition
impl Sync for ImportDefinition
impl Unpin for ImportDefinition
impl !UnwindSafe for ImportDefinition
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