#[non_exhaustive]pub struct SecretVersion {
pub version: String,
pub path: String,
/* private fields */
}
Expand description
Configuration for a single version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: String
Version of the secret (version number or the string ‘latest’). It is
preferable to use latest
version with secret volumes as secret value
changes are reflected immediately.
path: String
Relative path of the file under the mount path where the secret value for
this version will be fetched and made available. For example, setting the
mount_path as ‘/etc/secrets’ and path as secret_foo
would mount the
secret value file at /etc/secrets/secret_foo
.
Implementations§
Trait Implementations§
Source§impl Clone for SecretVersion
impl Clone for SecretVersion
Source§fn clone(&self) -> SecretVersion
fn clone(&self) -> SecretVersion
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 SecretVersion
impl Debug for SecretVersion
Source§impl Default for SecretVersion
impl Default for SecretVersion
Source§fn default() -> SecretVersion
fn default() -> SecretVersion
Returns the “default value” for a type. Read more
Source§impl Message for SecretVersion
impl Message for SecretVersion
Source§impl PartialEq for SecretVersion
impl PartialEq for SecretVersion
impl StructuralPartialEq for SecretVersion
Auto Trait Implementations§
impl Freeze for SecretVersion
impl RefUnwindSafe for SecretVersion
impl Send for SecretVersion
impl Sync for SecretVersion
impl Unpin for SecretVersion
impl UnwindSafe for SecretVersion
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