pub struct AtRestOpener { /* private fields */ }Expand description
The per-string half of open_batch; the vault is read at the first ciphertext, so
a batch of plaintext rows never touches it.
Implementations§
Source§impl AtRestOpener
impl AtRestOpener
Sourcepub fn open_or_keep(&mut self, input: String) -> String
pub fn open_or_keep(&mut self, input: String) -> String
maybe_decrypt_text for one string, sharing the batch’s cipher: the plaintext, or the
value unchanged when it is not ciphertext under the vault key.
Sourcepub fn open_blob_or_keep(&mut self, stored: &[u8]) -> Vec<u8> ⓘ
pub fn open_blob_or_keep(&mut self, stored: &[u8]) -> Vec<u8> ⓘ
maybe_decrypt_blob for one value, sharing the batch’s cipher.
Auto Trait Implementations§
impl Forget for AtRestOpener
impl Freeze for AtRestOpener
impl Move for AtRestOpener
impl RefUnwindSafe for AtRestOpener
impl Send for AtRestOpener
impl Sync for AtRestOpener
impl Unpin for AtRestOpener
impl UnsafeUnpin for AtRestOpener
impl UnwindSafe for AtRestOpener
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> 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