pub struct SecretMetadata {
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
pub version: u32,
pub tags: Vec<String>,
pub description: Option<String>,
}Expand description
Metadata associated with a secret (non-sensitive).
Fields§
§created_at: DateTime<Utc>§modified_at: DateTime<Utc>§version: u32§description: Option<String>Implementations§
Source§impl SecretMetadata
impl SecretMetadata
pub fn new() -> Self
pub fn bump_version(&mut self)
Trait Implementations§
Source§impl Clone for SecretMetadata
impl Clone for SecretMetadata
Source§fn clone(&self) -> SecretMetadata
fn clone(&self) -> SecretMetadata
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 SecretMetadata
impl Debug for SecretMetadata
Source§impl Default for SecretMetadata
impl Default for SecretMetadata
Source§impl<'de> Deserialize<'de> for SecretMetadata
impl<'de> Deserialize<'de> for SecretMetadata
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 SecretMetadata
impl RefUnwindSafe for SecretMetadata
impl Send for SecretMetadata
impl Sync for SecretMetadata
impl Unpin for SecretMetadata
impl UnsafeUnpin for SecretMetadata
impl UnwindSafe for SecretMetadata
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