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§
source§impl FileCryptoMetaData
impl FileCryptoMetaData
pub fn new<F2>( encryption_algorithm: EncryptionAlgorithm, key_metadata: F2 ) -> FileCryptoMetaData
pub fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T ) -> Result<FileCryptoMetaData>
pub async fn stream_from_in_protocol<T: TInputStreamProtocol>( i_prot: &mut T ) -> Result<FileCryptoMetaData>
pub fn write_to_out_protocol<T: TOutputProtocol>( &self, o_prot: &mut T ) -> Result<usize>
pub async fn write_to_out_stream_protocol<T: TOutputStreamProtocol>( &self, o_prot: &mut T ) -> Result<usize>
Trait Implementations§
source§impl AsyncReadThrift for FileCryptoMetaData
impl AsyncReadThrift for FileCryptoMetaData
fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<FileCryptoMetaData>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
source§impl Clone for FileCryptoMetaData
impl Clone for FileCryptoMetaData
source§fn clone(&self) -> FileCryptoMetaData
fn clone(&self) -> FileCryptoMetaData
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 FileCryptoMetaData
impl Debug for FileCryptoMetaData
source§impl Hash for FileCryptoMetaData
impl Hash for FileCryptoMetaData
source§impl Ord for FileCryptoMetaData
impl Ord for FileCryptoMetaData
source§fn cmp(&self, other: &FileCryptoMetaData) -> Ordering
fn cmp(&self, other: &FileCryptoMetaData) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FileCryptoMetaData
impl PartialEq for FileCryptoMetaData
source§fn 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 ==
.source§impl PartialOrd for FileCryptoMetaData
impl PartialOrd for FileCryptoMetaData
source§fn partial_cmp(&self, other: &FileCryptoMetaData) -> Option<Ordering>
fn partial_cmp(&self, other: &FileCryptoMetaData) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl 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 StructuralPartialEq for FileCryptoMetaData
Auto Trait Implementations§
impl Freeze for FileCryptoMetaData
impl RefUnwindSafe for FileCryptoMetaData
impl Send for FileCryptoMetaData
impl Sync for FileCryptoMetaData
impl Unpin for FileCryptoMetaData
impl UnwindSafe for FileCryptoMetaData
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