pub struct EncryptedObjectKeyRefV1 {
pub format_version: u16,
pub physical_object: PhysicalObjectId,
pub algorithm: DocumentEncryptionAlgorithmV1,
pub content_key_id: ContentKeyIdV1,
pub content_key_generation: u64,
pub nonce: [u8; 12],
pub authenticated_context_digest: [u8; 32],
pub ciphertext_bytes: u64,
}Expand description
Immutable document-store metadata for one encrypted object. Mutable resolver binding and access generations intentionally do not appear here: rotating them must not require rewriting immutable ciphertext.
Fields§
§format_version: u16§physical_object: PhysicalObjectId§algorithm: DocumentEncryptionAlgorithmV1§content_key_id: ContentKeyIdV1§content_key_generation: u64§nonce: [u8; 12]§authenticated_context_digest: [u8; 32]§ciphertext_bytes: u64Implementations§
Source§impl EncryptedObjectKeyRefV1
impl EncryptedObjectKeyRefV1
pub fn validate(&self) -> Result<(), LifecycleContractError>
Trait Implementations§
Source§impl Clone for EncryptedObjectKeyRefV1
impl Clone for EncryptedObjectKeyRefV1
Source§impl Debug for EncryptedObjectKeyRefV1
impl Debug for EncryptedObjectKeyRefV1
Source§impl<'de> Deserialize<'de> for EncryptedObjectKeyRefV1
impl<'de> Deserialize<'de> for EncryptedObjectKeyRefV1
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 Eq for EncryptedObjectKeyRefV1
Source§impl PartialEq for EncryptedObjectKeyRefV1
impl PartialEq for EncryptedObjectKeyRefV1
Source§impl Serialize for EncryptedObjectKeyRefV1
impl Serialize for EncryptedObjectKeyRefV1
impl StructuralPartialEq for EncryptedObjectKeyRefV1
Auto Trait Implementations§
impl Freeze for EncryptedObjectKeyRefV1
impl RefUnwindSafe for EncryptedObjectKeyRefV1
impl Send for EncryptedObjectKeyRefV1
impl Sync for EncryptedObjectKeyRefV1
impl Unpin for EncryptedObjectKeyRefV1
impl UnsafeUnpin for EncryptedObjectKeyRefV1
impl UnwindSafe for EncryptedObjectKeyRefV1
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