Enum wick_config::config::ConfigOrDefinition
source · pub enum ConfigOrDefinition<T> {
Config(ConfigurationTreeNode<T>),
Definition {
id: String,
element: ComponentDefinition,
},
}Variants§
Implementations§
source§impl<T> ConfigOrDefinition<T>
impl<T> ConfigOrDefinition<T>
sourcepub fn as_config(self) -> Option<T>
pub fn as_config(self) -> Option<T>
Returns the held configuration if it is a ConfigurationTreeNode.
sourcepub fn as_component_definition(self) -> Option<(String, ComponentDefinition)>
pub fn as_component_definition(self) -> Option<(String, ComponentDefinition)>
Returns the held configuration if it is a ComponentDefinition.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ConfigOrDefinition<T>
impl<T> Send for ConfigOrDefinition<T>where T: Send,
impl<T> Sync for ConfigOrDefinition<T>where T: Sync,
impl<T> Unpin for ConfigOrDefinition<T>where T: Unpin,
impl<T> !UnwindSafe for ConfigOrDefinition<T>
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