pub struct EncryptionConstraint {
pub required_targets: Vec<String>,
pub backend: Option<String>,
pub mode: Option<EncryptionMode>,
}Expand description
Encryption constraint applied to files from a config source.
Fields§
§required_targets: Vec<String>Glob patterns or explicit paths that must be encrypted.
backend: Option<String>If set, restrict which backend is acceptable.
mode: Option<EncryptionMode>If set, restrict which encryption mode is acceptable.
Trait Implementations§
Source§impl Clone for EncryptionConstraint
impl Clone for EncryptionConstraint
Source§fn clone(&self) -> EncryptionConstraint
fn clone(&self) -> EncryptionConstraint
Returns a duplicate 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 EncryptionConstraint
impl Debug for EncryptionConstraint
Source§impl Default for EncryptionConstraint
impl Default for EncryptionConstraint
Source§fn default() -> EncryptionConstraint
fn default() -> EncryptionConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncryptionConstraint
impl<'de> Deserialize<'de> for EncryptionConstraint
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
Auto Trait Implementations§
impl Freeze for EncryptionConstraint
impl RefUnwindSafe for EncryptionConstraint
impl Send for EncryptionConstraint
impl Sync for EncryptionConstraint
impl Unpin for EncryptionConstraint
impl UnsafeUnpin for EncryptionConstraint
impl UnwindSafe for EncryptionConstraint
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