Enum wick_config::v1::ResourceRestriction
source · pub enum ResourceRestriction {
VolumeRestriction(VolumeRestriction),
UrlRestriction(UrlRestriction),
TcpPortRestriction(TcpPortRestriction),
UdpPortRestriction(UdpPortRestriction),
}Expand description
Restrictions to assert against an application or component.
Variants§
VolumeRestriction(VolumeRestriction)
A variant representing a VolumeRestriction type.
UrlRestriction(UrlRestriction)
A variant representing a UrlRestriction type.
TcpPortRestriction(TcpPortRestriction)
A variant representing a TcpPortRestriction type.
UdpPortRestriction(UdpPortRestriction)
A variant representing a UdpPortRestriction type.
Trait Implementations§
source§impl Clone for ResourceRestriction
impl Clone for ResourceRestriction
source§fn clone(&self) -> ResourceRestriction
fn clone(&self) -> ResourceRestriction
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 ResourceRestriction
impl Debug for ResourceRestriction
source§impl<'de> Deserialize<'de> for ResourceRestriction
impl<'de> Deserialize<'de> for ResourceRestriction
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<ResourceRestriction> for ResourceRestriction
impl PartialEq<ResourceRestriction> for ResourceRestriction
source§fn eq(&self, other: &ResourceRestriction) -> bool
fn eq(&self, other: &ResourceRestriction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ResourceRestriction
impl Serialize for ResourceRestriction
source§impl TryFrom<ResourceRestriction> for ResourceRestriction
impl TryFrom<ResourceRestriction> for ResourceRestriction
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
Performs the conversion.
source§impl TryFrom<ResourceRestriction> for ResourceRestriction
impl TryFrom<ResourceRestriction> for ResourceRestriction
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
fn try_from(value: ResourceRestriction) -> Result<Self, ManifestError>
Performs the conversion.
impl StructuralPartialEq for ResourceRestriction
Auto Trait Implementations§
impl RefUnwindSafe for ResourceRestriction
impl Send for ResourceRestriction
impl Sync for ResourceRestriction
impl Unpin for ResourceRestriction
impl UnwindSafe for ResourceRestriction
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