pub struct VaultHeader {
pub version: u8,
pub salt: Vec<u8>,
pub created_at: DateTime<Utc>,
pub environment: String,
pub argon2_params: Option<StoredArgon2Params>,
pub keyfile_hash: Option<String>,
}Expand description
Metadata stored at the beginning of a vault file.
Fields§
§version: u8Format version.
salt: Vec<u8>The salt used for Argon2id key derivation (base64 in JSON).
created_at: DateTime<Utc>When this vault was first created.
environment: StringEnvironment name (e.g. “dev”, “staging”, “prod”).
argon2_params: Option<StoredArgon2Params>Argon2 params used at vault creation (stored so open uses the same). Optional for backward compatibility with v0.1.0 vaults.
keyfile_hash: Option<String>SHA-256 hash of the keyfile (base64), if one was used at creation. Presence of this field means a keyfile is required to open the vault.
Trait Implementations§
Source§impl Clone for VaultHeader
impl Clone for VaultHeader
Source§fn clone(&self) -> VaultHeader
fn clone(&self) -> VaultHeader
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 VaultHeader
impl Debug for VaultHeader
Source§impl<'de> Deserialize<'de> for VaultHeader
impl<'de> Deserialize<'de> for VaultHeader
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 VaultHeader
impl RefUnwindSafe for VaultHeader
impl Send for VaultHeader
impl Sync for VaultHeader
impl Unpin for VaultHeader
impl UnsafeUnpin for VaultHeader
impl UnwindSafe for VaultHeader
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