pub struct ReceiptDecryptionKey(/* private fields */);Expand description
Symmetric key used to decrypt an Encrypted Receipt.
The key material is intentionally redacted from Debug
and Display. Use as_str only when
serializing Receipt Access or storing the key securely.
The in-memory key bytes are zeroized on drop as defense-in-depth. This is not a complete scrub: the key is serialized verbatim into the Receipt Access wire message, so copies necessarily exist outside this type.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ReceiptDecryptionKey
impl AsRef<str> for ReceiptDecryptionKey
Source§impl Clone for ReceiptDecryptionKey
impl Clone for ReceiptDecryptionKey
Source§impl Debug for ReceiptDecryptionKey
impl Debug for ReceiptDecryptionKey
Source§impl Display for ReceiptDecryptionKey
impl Display for ReceiptDecryptionKey
Source§impl Drop for ReceiptDecryptionKey
impl Drop for ReceiptDecryptionKey
impl Eq for ReceiptDecryptionKey
Source§impl PartialEq for ReceiptDecryptionKey
impl PartialEq for ReceiptDecryptionKey
impl StructuralPartialEq for ReceiptDecryptionKey
Auto Trait Implementations§
impl Freeze for ReceiptDecryptionKey
impl RefUnwindSafe for ReceiptDecryptionKey
impl Send for ReceiptDecryptionKey
impl Sync for ReceiptDecryptionKey
impl Unpin for ReceiptDecryptionKey
impl UnsafeUnpin for ReceiptDecryptionKey
impl UnwindSafe for ReceiptDecryptionKey
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,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.