pub trait FieldEncryptionKeyProvider: Send + Sync {
// Required method
fn get_key(&self, kid: &str) -> Result<Vec<u8>>;
// Provided method
fn encryption_kid(
&self,
_ctx: &FieldEncryptionContext,
_target: &FieldEncryptionTarget,
) -> Result<String> { ... }
}Required Methods§
Provided Methods§
fn encryption_kid( &self, _ctx: &FieldEncryptionContext, _target: &FieldEncryptionTarget, ) -> Result<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".