pub enum OwnedConfigurationItem {
Component(ComponentDefinition),
Resource(ResourceDefinition),
}Expand description
A configuration item
Variants§
Component(ComponentDefinition)
A component definition.
Resource(ResourceDefinition)
A resource definition.
Implementations§
source§impl OwnedConfigurationItem
impl OwnedConfigurationItem
sourcepub fn try_component(self) -> Result<ComponentDefinition, Error>
pub fn try_component(self) -> Result<ComponentDefinition, Error>
Get the component definition or return an error.
sourcepub fn try_resource(self) -> Result<ResourceDefinition, Error>
pub fn try_resource(self) -> Result<ResourceDefinition, Error>
Get the resource definition or return an error.
Trait Implementations§
source§impl Clone for OwnedConfigurationItem
impl Clone for OwnedConfigurationItem
source§fn clone(&self) -> OwnedConfigurationItem
fn clone(&self) -> OwnedConfigurationItem
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 OwnedConfigurationItem
impl Debug for OwnedConfigurationItem
source§impl PartialEq<OwnedConfigurationItem> for OwnedConfigurationItem
impl PartialEq<OwnedConfigurationItem> for OwnedConfigurationItem
source§fn eq(&self, other: &OwnedConfigurationItem) -> bool
fn eq(&self, other: &OwnedConfigurationItem) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OwnedConfigurationItem
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedConfigurationItem
impl Send for OwnedConfigurationItem
impl Sync for OwnedConfigurationItem
impl Unpin for OwnedConfigurationItem
impl !UnwindSafe for OwnedConfigurationItem
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