pub struct ProfileMeta {
pub description: Option<String>,
pub created_at: DateTime<Utc>,
pub last_modified: DateTime<Utc>,
pub is_protected: bool,
}Expand description
Metadata associated with a named profile, stored in a sidecar JSON file
(<vault_dir>/<profile>.meta.json). This is separate from the vault file so
it can be read without the vault password.
Fields§
§description: Option<String>Human-readable description of the profile’s purpose.
created_at: DateTime<Utc>When the vault file was first created (best-effort; set at meta creation time).
last_modified: DateTime<Utc>When the metadata was last modified.
is_protected: boolIf true, deletion without --force must be blocked with a warning.
Implementations§
Trait Implementations§
Source§impl Clone for ProfileMeta
impl Clone for ProfileMeta
Source§fn clone(&self) -> ProfileMeta
fn clone(&self) -> ProfileMeta
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 ProfileMeta
impl Debug for ProfileMeta
Source§impl Default for ProfileMeta
impl Default for ProfileMeta
Source§impl<'de> Deserialize<'de> for ProfileMeta
impl<'de> Deserialize<'de> for ProfileMeta
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
Source§impl PartialEq for ProfileMeta
impl PartialEq for ProfileMeta
Source§fn eq(&self, other: &ProfileMeta) -> bool
fn eq(&self, other: &ProfileMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProfileMeta
impl Serialize for ProfileMeta
impl Eq for ProfileMeta
impl StructuralPartialEq for ProfileMeta
Auto Trait Implementations§
impl Freeze for ProfileMeta
impl RefUnwindSafe for ProfileMeta
impl Send for ProfileMeta
impl Sync for ProfileMeta
impl Unpin for ProfileMeta
impl UnsafeUnpin for ProfileMeta
impl UnwindSafe for ProfileMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.