pub struct CredentialAttachLiveReceipt { /* private fields */ }Expand description
Stored canonical credential-attach result while its secret-bearing receipt remains live.
Implementations§
Source§impl CredentialAttachLiveReceipt
impl CredentialAttachLiveReceipt
Sourcepub const fn from_commit(committed: AttachBound) -> Self
pub const fn from_commit(committed: AttachBound) -> Self
Captures the exact committed attach payload as a live receipt.
Sourcepub const fn committed(&self) -> &AttachBound
pub const fn committed(&self) -> &AttachBound
Borrows the complete immutable committed receipt payload.
Sourcepub const fn into_committed(self) -> AttachBound
pub const fn into_committed(self) -> AttachBound
Moves the complete committed payload without copying receipt state.
Sourcepub fn encode_committed_body(&self) -> Vec<u8> ⓘ
pub fn encode_committed_body(&self) -> Vec<u8> ⓘ
Encodes the exact committed v1 wire body by borrowing its payload.
Sourcepub fn decode_committed_body(bytes: &[u8]) -> Result<Self, CodecError>
pub fn decode_committed_body(bytes: &[u8]) -> Result<Self, CodecError>
Decodes one exact committed v1 wire body, moving the validated payload.
§Errors
Returns crate::wire::CodecError for a noncanonical field, wrong
originating request, incomplete body or trailing bytes.
Trait Implementations§
Source§impl Clone for CredentialAttachLiveReceipt
impl Clone for CredentialAttachLiveReceipt
Source§impl Debug for CredentialAttachLiveReceipt
impl Debug for CredentialAttachLiveReceipt
impl Eq for CredentialAttachLiveReceipt
impl StructuralPartialEq for CredentialAttachLiveReceipt
Auto Trait Implementations§
impl Freeze for CredentialAttachLiveReceipt
impl RefUnwindSafe for CredentialAttachLiveReceipt
impl Send for CredentialAttachLiveReceipt
impl Sync for CredentialAttachLiveReceipt
impl Unpin for CredentialAttachLiveReceipt
impl UnsafeUnpin for CredentialAttachLiveReceipt
impl UnwindSafe for CredentialAttachLiveReceipt
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