pub struct KmsEncryption { /* private fields */ }Available on crate features
parquet_kms and parquet only.Expand description
Generates new data encryption keys for each file, wrapped using the KMS.
Implementations§
Source§impl KmsEncryption
impl KmsEncryption
pub fn new( crypto_factory: PythonCryptoFactory, kms_connection_config: Arc<KmsConnectionConfig>, encryption_configuration: EncryptionConfiguration, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KmsEncryption
Available on crate feature serde and (crate features dsl-schema or serde) only.
impl<'de> Deserialize<'de> for KmsEncryption
Available on crate feature
serde and (crate features dsl-schema or serde) only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EncryptionPropertiesFactory for KmsEncryption
impl EncryptionPropertiesFactory for KmsEncryption
Source§fn file_encryption_properties(
&self,
) -> PolarsResult<Arc<FileEncryptionProperties>>
fn file_encryption_properties( &self, ) -> PolarsResult<Arc<FileEncryptionProperties>>
Create encryption properties for a new file.
Source§impl From<KmsEncryption> for ParquetEncryption
impl From<KmsEncryption> for ParquetEncryption
Source§fn from(kms: KmsEncryption) -> Self
fn from(kms: KmsEncryption) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for KmsEncryption
Available on crate feature dsl-schema and (crate features dsl-schema or serde) only.
impl JsonSchema for KmsEncryption
Available on crate feature
dsl-schema and (crate features dsl-schema or serde) only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for KmsEncryption
impl !UnwindSafe for KmsEncryption
impl Freeze for KmsEncryption
impl Send for KmsEncryption
impl Sync for KmsEncryption
impl Unpin for KmsEncryption
impl UnsafeUnpin for KmsEncryption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more