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(
i_prot: &mut dyn TInputProtocol
) -> Result<FileCryptoMetaData>
pub async fn stream_from_in_protocol(
i_prot: &mut dyn TInputStreamProtocol
) -> Result<FileCryptoMetaData>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<usize>
pub async fn write_to_out_stream_protocol(
&self,
o_prot: &mut dyn TOutputStreamProtocol
) -> 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
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more