pub struct VaultInsert {
pub token_id: Uuid,
pub pii_type: PiiType,
pub ciphertext: Vec<u8>,
}Expand description
Client-encrypted value for vault storage.
Produced by client-side WebCrypto. The server stores these as opaque bytes and never generates ciphertext or holds decryption keys.
Fields§
§token_id: UuidToken ID linking this ciphertext to a RedactionSpan.
pii_type: PiiTypeClassification of the encrypted PII.
ciphertext: Vec<u8>Client-side WebCrypto-encrypted original value.
Trait Implementations§
Source§impl Clone for VaultInsert
impl Clone for VaultInsert
Source§fn clone(&self) -> VaultInsert
fn clone(&self) -> VaultInsert
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 VaultInsert
impl Debug for VaultInsert
Source§impl<'de> Deserialize<'de> for VaultInsert
impl<'de> Deserialize<'de> for VaultInsert
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 VaultInsert
impl PartialEq for VaultInsert
Source§impl Serialize for VaultInsert
impl Serialize for VaultInsert
impl StructuralPartialEq for VaultInsert
Auto Trait Implementations§
impl Freeze for VaultInsert
impl RefUnwindSafe for VaultInsert
impl Send for VaultInsert
impl Sync for VaultInsert
impl Unpin for VaultInsert
impl UnwindSafe for VaultInsert
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