Struct wick_config::config::VolumeRestriction
source · pub struct VolumeRestriction { /* private fields */ }Expand description
Settings that define restrictions on what Volumes can be accessed.
Implementations§
source§impl VolumeRestriction
impl VolumeRestriction
pub fn components(&self) -> &[String]
pub fn allow(&self) -> &TemplateConfig<String>
source§impl VolumeRestriction
impl VolumeRestriction
sourcepub fn new_from_template(
components: Vec<String>,
allow: impl Into<String>
) -> Self
pub fn new_from_template( components: Vec<String>, allow: impl Into<String> ) -> Self
Create a new VolumeRestriction for the passed components.
Trait Implementations§
source§impl Clone for VolumeRestriction
impl Clone for VolumeRestriction
source§fn clone(&self) -> VolumeRestriction
fn clone(&self) -> VolumeRestriction
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 VolumeRestriction
impl Debug for VolumeRestriction
source§impl Serialize for VolumeRestriction
impl Serialize for VolumeRestriction
source§impl TryFrom<VolumeRestriction> for VolumeRestriction
impl TryFrom<VolumeRestriction> for VolumeRestriction
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: VolumeRestriction) -> Result<Self, ManifestError>
fn try_from(value: VolumeRestriction) -> Result<Self, ManifestError>
Performs the conversion.
source§impl TryFrom<VolumeRestriction> for VolumeRestriction
impl TryFrom<VolumeRestriction> for VolumeRestriction
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: VolumeRestriction) -> Result<Self, ManifestError>
fn try_from(value: VolumeRestriction) -> Result<Self, ManifestError>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for VolumeRestriction
impl Send for VolumeRestriction
impl Sync for VolumeRestriction
impl Unpin for VolumeRestriction
impl UnwindSafe for VolumeRestriction
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