Struct orc_rust::proto::EncryptionVariant
source · 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 copy 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for EncryptionVariant
impl PartialEq for EncryptionVariant
source§fn eq(&self, other: &EncryptionVariant) -> bool
fn eq(&self, other: &EncryptionVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 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