Struct parquet_format_safe::FileCryptoMetaData
source · [−]pub struct FileCryptoMetaData {
pub encryption_algorithm: EncryptionAlgorithm,
pub key_metadata: Option<Vec<u8>>,
}
Expand description
Crypto metadata for files with encrypted footer *
Fields
encryption_algorithm: EncryptionAlgorithm
Encryption algorithm. This field is only used for files with encrypted footer. Files with plaintext footer store algorithm id inside footer (FileMetaData structure).
key_metadata: Option<Vec<u8>>
Retrieval metadata of key used for encryption of footer, and (possibly) columns *
Implementations
sourceimpl FileCryptoMetaData
impl FileCryptoMetaData
pub fn new<F2>(
encryption_algorithm: EncryptionAlgorithm,
key_metadata: F2
) -> FileCryptoMetaData where
F2: Into<Option<Vec<u8>>>,
pub fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<FileCryptoMetaData>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations
sourceimpl Clone for FileCryptoMetaData
impl Clone for FileCryptoMetaData
sourcefn clone(&self) -> FileCryptoMetaData
fn clone(&self) -> FileCryptoMetaData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FileCryptoMetaData
impl Debug for FileCryptoMetaData
sourceimpl Hash for FileCryptoMetaData
impl Hash for FileCryptoMetaData
sourceimpl Ord for FileCryptoMetaData
impl Ord for FileCryptoMetaData
sourcefn cmp(&self, other: &FileCryptoMetaData) -> Ordering
fn cmp(&self, other: &FileCryptoMetaData) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FileCryptoMetaData> for FileCryptoMetaData
impl PartialEq<FileCryptoMetaData> for FileCryptoMetaData
sourcefn eq(&self, other: &FileCryptoMetaData) -> bool
fn eq(&self, other: &FileCryptoMetaData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FileCryptoMetaData) -> bool
fn ne(&self, other: &FileCryptoMetaData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<FileCryptoMetaData> for FileCryptoMetaData
impl PartialOrd<FileCryptoMetaData> for FileCryptoMetaData
sourcefn partial_cmp(&self, other: &FileCryptoMetaData) -> Option<Ordering>
fn partial_cmp(&self, other: &FileCryptoMetaData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl ReadThrift for FileCryptoMetaData
impl ReadThrift for FileCryptoMetaData
fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<FileCryptoMetaData>
impl Eq for FileCryptoMetaData
impl StructuralEq for FileCryptoMetaData
impl StructuralPartialEq for FileCryptoMetaData
Auto Trait Implementations
impl RefUnwindSafe for FileCryptoMetaData
impl Send for FileCryptoMetaData
impl Sync for FileCryptoMetaData
impl Unpin for FileCryptoMetaData
impl UnwindSafe for FileCryptoMetaData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more