Enum wick_config::v1::ResourceDefinition
source · pub enum ResourceDefinition {
TcpPort(TcpPort),
UdpPort(UdpPort),
Url(Url),
Volume(Volume),
}Expand description
The possible types of resources. Resources are system-level resources and sensitive configuration.
Variants§
TcpPort(TcpPort)
A variant representing a TcpPort type.
UdpPort(UdpPort)
A variant representing a UdpPort type.
Url(Url)
A variant representing a Url type.
Volume(Volume)
A variant representing a Volume type.
Trait Implementations§
source§impl Clone for ResourceDefinition
impl Clone for ResourceDefinition
source§fn clone(&self) -> ResourceDefinition
fn clone(&self) -> ResourceDefinition
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 ResourceDefinition
impl Debug for ResourceDefinition
source§impl<'de> Deserialize<'de> for ResourceDefinition
impl<'de> Deserialize<'de> for ResourceDefinition
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<ResourceDefinition> for ResourceDefinition
impl PartialEq<ResourceDefinition> for ResourceDefinition
source§fn eq(&self, other: &ResourceDefinition) -> bool
fn eq(&self, other: &ResourceDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ResourceDefinition
impl Serialize for ResourceDefinition
source§impl TryFrom<ResourceDefinition> for ResourceDefinition
impl TryFrom<ResourceDefinition> for ResourceDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<ResourceDefinition> for ResourceDefinition
impl TryFrom<ResourceDefinition> for ResourceDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ResourceDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ResourceDefinition
impl Send for ResourceDefinition
impl Sync for ResourceDefinition
impl Unpin for ResourceDefinition
impl UnwindSafe for ResourceDefinition
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