pub struct StandardKeyMetadata { /* private fields */ }Expand description
Standard key metadata for Iceberg table encryption.
Contains the Data Encryption Key (DEK), AAD prefix, and optional file
length. Byte-compatible with Java’s StandardKeyMetadata via Avro
serialization.
Wire format: [version byte (0x01)] [Avro binary datum]
Implementations§
Source§impl StandardKeyMetadata
impl StandardKeyMetadata
Sourcepub fn with_aad_prefix(self, aad_prefix: &[u8]) -> Self
pub fn with_aad_prefix(self, aad_prefix: &[u8]) -> Self
Adds an AAD prefix.
Sourcepub fn with_file_length(self, length: u64) -> Self
pub fn with_file_length(self, length: u64) -> Self
Adds a file length.
Sourcepub fn encryption_key(&self) -> &SensitiveBytes
pub fn encryption_key(&self) -> &SensitiveBytes
Returns the plaintext Data Encryption Key.
Sourcepub fn aad_prefix(&self) -> Option<&[u8]>
pub fn aad_prefix(&self) -> Option<&[u8]>
Returns the AAD prefix.
Sourcepub fn file_length(&self) -> Option<u64>
pub fn file_length(&self) -> Option<u64>
Returns the optional file length.
Trait Implementations§
Source§impl Clone for StandardKeyMetadata
impl Clone for StandardKeyMetadata
Source§fn clone(&self) -> StandardKeyMetadata
fn clone(&self) -> StandardKeyMetadata
Returns a duplicate 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 StandardKeyMetadata
impl Debug for StandardKeyMetadata
Source§impl PartialEq for StandardKeyMetadata
impl PartialEq for StandardKeyMetadata
impl Eq for StandardKeyMetadata
impl StructuralPartialEq for StandardKeyMetadata
Auto Trait Implementations§
impl Freeze for StandardKeyMetadata
impl RefUnwindSafe for StandardKeyMetadata
impl Send for StandardKeyMetadata
impl Sync for StandardKeyMetadata
impl Unpin for StandardKeyMetadata
impl UnwindSafe for StandardKeyMetadata
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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