Skip to main content

EncryptionPropertiesFactory

Trait EncryptionPropertiesFactory 

Source
pub trait EncryptionPropertiesFactory: Send + Sync {
    // Required methods
    fn file_encryption_properties(
        &self,
    ) -> PolarsResult<Arc<FileEncryptionProperties>>;
    fn encrypted_column_names(&self) -> Vec<String>;
}
Available on crate feature parquet only.
Expand description

Creates the properties used to encrypt each Parquet file written.

Required Methods§

Source

fn file_encryption_properties( &self, ) -> PolarsResult<Arc<FileEncryptionProperties>>

Create encryption properties for a new file.

Source

fn encrypted_column_names(&self) -> Vec<String>

The dot-separated paths of the columns that are encrypted with their own key, or none for uniform encryption.

This is used to validate the columns before any file is written.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EncryptionPropertiesFactory for Arc<FileEncryptionProperties>

File encryption properties can be specified directly and used as a factory.

Source§

fn file_encryption_properties( &self, ) -> PolarsResult<Arc<FileEncryptionProperties>>

Source§

fn encrypted_column_names(&self) -> Vec<String>

Implementors§