Enum Encrypted
pub enum Encrypted {
SteVec(SteVec<16>),
Record(EncryptedRecord, Vec<IndexTerm>),
}Expand description
Represents an encrypted payload that is ready to be stored.
Variants§
Trait Implementations§
§impl Decryptable for Encrypted
impl Decryptable for Encrypted
type Error = EncryptionError
§fn into_encrypted_record(self) -> Result<EncryptedRecord, Self::Error>
fn into_encrypted_record(self) -> Result<EncryptedRecord, Self::Error>
Convert the record into an EncryptedRecord.
§fn retrieve_key_payload(&self) -> Result<RetrieveKeyPayload<'_>, Self::Error>
fn retrieve_key_payload(&self) -> Result<RetrieveKeyPayload<'_>, Self::Error>
The payload used to retrieve the key for decryption.
Auto Trait Implementations§
impl Freeze for Encrypted
impl RefUnwindSafe for Encrypted
impl Send for Encrypted
impl Sync for Encrypted
impl Unpin for Encrypted
impl UnsafeUnpin for Encrypted
impl UnwindSafe for Encrypted
Blanket Implementations§
impl<T> AuthStrategyBounds 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> 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 more