pub struct EncryptedKey { /* private fields */ }Expand description
Keys used for table encryption
Serializing of encrypted_key_metadata is done using base64 encoding.
Implementations§
Source§impl EncryptedKey
impl EncryptedKey
Sourcepub fn builder() -> EncryptedKeyBuilder<((), (), (), ())>
pub fn builder() -> EncryptedKeyBuilder<((), (), (), ())>
Create a builder for building EncryptedKey.
On the builder, call .key_id(...), .encrypted_key_metadata(...), .encrypted_by_id(...)(optional), .properties(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of EncryptedKey.
Source§impl EncryptedKey
impl EncryptedKey
Sourcepub fn encrypted_key_metadata(&self) -> &[u8] ⓘ
pub fn encrypted_key_metadata(&self) -> &[u8] ⓘ
Returns the encrypted key metadata
Sourcepub fn encrypted_by_id(&self) -> Option<&str>
pub fn encrypted_by_id(&self) -> Option<&str>
Returns the ID of the entity that encrypted this key
Sourcepub fn properties(&self) -> &HashMap<String, String>
pub fn properties(&self) -> &HashMap<String, String>
Returns the properties map
Trait Implementations§
Source§impl Clone for EncryptedKey
impl Clone for EncryptedKey
Source§fn clone(&self) -> EncryptedKey
fn clone(&self) -> EncryptedKey
Returns a copy 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 EncryptedKey
impl Debug for EncryptedKey
Source§impl<'de> Deserialize<'de> for EncryptedKey
impl<'de> Deserialize<'de> for EncryptedKey
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 PartialEq for EncryptedKey
impl PartialEq for EncryptedKey
Source§impl Serialize for EncryptedKey
impl Serialize for EncryptedKey
impl Eq for EncryptedKey
impl StructuralPartialEq for EncryptedKey
Auto Trait Implementations§
impl Freeze for EncryptedKey
impl RefUnwindSafe for EncryptedKey
impl Send for EncryptedKey
impl Sync for EncryptedKey
impl Unpin for EncryptedKey
impl UnwindSafe for EncryptedKey
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
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
Checks if this value is equivalent to the given key. Read more
§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<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
Checks if this value is equivalent to the given key. Read more
§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