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 (const: unstable) · 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
impl Eq for StandardKeyMetadata
Source§impl PartialEq for StandardKeyMetadata
impl PartialEq 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 UnsafeUnpin for StandardKeyMetadata
impl UnwindSafe for StandardKeyMetadata
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more