#[non_exhaustive]pub enum SecretMaterial {
File(ProtectedString),
Environment(ProtectedString),
}Expand description
Material source for an application-managed secret resource.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File(ProtectedString)
Read secret bytes from a caller-resolved file source.
Environment(ProtectedString)
Read secret bytes from an explicitly supplied environment value.
Trait Implementations§
Source§impl Clone for SecretMaterial
impl Clone for SecretMaterial
Source§fn clone(&self) -> SecretMaterial
fn clone(&self) -> SecretMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretMaterial
impl Debug for SecretMaterial
impl Eq for SecretMaterial
Source§impl PartialEq for SecretMaterial
impl PartialEq for SecretMaterial
impl StructuralPartialEq for SecretMaterial
Auto Trait Implementations§
impl Freeze for SecretMaterial
impl RefUnwindSafe for SecretMaterial
impl Send for SecretMaterial
impl Sync for SecretMaterial
impl Unpin for SecretMaterial
impl UnsafeUnpin for SecretMaterial
impl UnwindSafe for SecretMaterial
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