pub struct ObjectEncryptionOptions {
pub permanent: bool,
pub key_id: u64,
pub key: EncryptionKey,
pub unwrapped_key: UnwrappedKey,
}Expand description
Parameters for encrypting a newly created object.
Fields§
§permanent: boolIf set, the keys are treated as permanent and never evicted from the KeyManager cache.
This is necessary when keys are managed by another store; for example, the layer files
of a child store are objects in the root store, but they are encrypted with keys from the
child store. Generally, most objects should have this set to false.
key_id: u64§key: EncryptionKey§unwrapped_key: UnwrappedKeyAuto Trait Implementations§
impl Freeze for ObjectEncryptionOptions
impl RefUnwindSafe for ObjectEncryptionOptions
impl Send for ObjectEncryptionOptions
impl Sync for ObjectEncryptionOptions
impl Unpin for ObjectEncryptionOptions
impl UnsafeUnpin for ObjectEncryptionOptions
impl UnwindSafe for ObjectEncryptionOptions
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<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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