pub struct Vault {
pub schema_version: u32,
pub secrets: BTreeMap<String, SealedRecord>,
}Expand description
The persisted vault: a versioned map of record id → sealed record.
In L2 the id is BLAKE3(coordinate); at this layer it is any opaque string.
Every value lives inside a SealedRecord, so this structure can be
serialized freely without exposing plaintext.
Fields§
§schema_version: u32Schema version of this vault file.
secrets: BTreeMap<String, SealedRecord>Sealed records keyed by opaque id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vault
impl<'de> Deserialize<'de> for Vault
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
impl StructuralPartialEq for Vault
Auto Trait Implementations§
impl Freeze for Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnsafeUnpin for Vault
impl UnwindSafe for Vault
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