pub struct EncryptionVariant {
pub root: Option<u32>,
pub key: Option<u32>,
pub encrypted_key: Option<Vec<u8>>,
pub stripe_statistics: Vec<Stream>,
pub file_statistics: Option<Vec<u8>>,
}Expand description
The description of an encryption variant. Each variant is a single subtype that is encrypted with a single key.
Fields§
§root: Option<u32>the column id of the root
key: Option<u32>The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.
encrypted_key: Option<Vec<u8>>the encrypted key for the file footer
stripe_statistics: Vec<Stream>the stripe statistics for this variant
file_statistics: Option<Vec<u8>>encrypted file statistics as a FileStatistics
Implementations§
Source§impl EncryptionVariant
impl EncryptionVariant
Sourcepub fn encrypted_key(&self) -> &[u8] ⓘ
pub fn encrypted_key(&self) -> &[u8] ⓘ
Returns the value of encrypted_key, or the default value if encrypted_key is unset.
Sourcepub fn file_statistics(&self) -> &[u8] ⓘ
pub fn file_statistics(&self) -> &[u8] ⓘ
Returns the value of file_statistics, or the default value if file_statistics is unset.
Trait Implementations§
Source§impl Clone for EncryptionVariant
impl Clone for EncryptionVariant
Source§fn clone(&self) -> EncryptionVariant
fn clone(&self) -> EncryptionVariant
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 EncryptionVariant
impl Debug for EncryptionVariant
Source§impl Default for EncryptionVariant
impl Default for EncryptionVariant
Source§impl Message for EncryptionVariant
impl Message for EncryptionVariant
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for EncryptionVariant
impl PartialEq for EncryptionVariant
impl StructuralPartialEq for EncryptionVariant
Auto Trait Implementations§
impl Freeze for EncryptionVariant
impl RefUnwindSafe for EncryptionVariant
impl Send for EncryptionVariant
impl Sync for EncryptionVariant
impl Unpin for EncryptionVariant
impl UnsafeUnpin for EncryptionVariant
impl UnwindSafe for EncryptionVariant
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