pub struct RawVault {
pub header: VaultHeader,
pub secrets: Vec<Secret>,
pub header_bytes: Vec<u8>,
pub secrets_bytes: Vec<u8>,
pub stored_hmac: Vec<u8>,
}Expand description
Raw data read from a vault file on disk.
Keeps the original bytes so the HMAC can be verified over the exact bytes that were written — no re-serialization needed.
Fields§
§header: VaultHeader§secrets: Vec<Secret>§header_bytes: Vec<u8>The raw header JSON bytes exactly as stored on disk.
secrets_bytes: Vec<u8>The raw secrets JSON bytes exactly as stored on disk.
stored_hmac: Vec<u8>The HMAC tag stored at the end of the file.
Auto Trait Implementations§
impl Freeze for RawVault
impl RefUnwindSafe for RawVault
impl Send for RawVault
impl Sync for RawVault
impl Unpin for RawVault
impl UnsafeUnpin for RawVault
impl UnwindSafe for RawVault
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