pub struct SignedCanonicalPayload { /* private fields */ }Expand description
Detached signature paired with the shared canonical bytes that were signed.
Implementations§
Source§impl SignedCanonicalPayload
impl SignedCanonicalPayload
Sourcepub fn new(
signature: Signature,
canonical: Arc<CanonicalBytes>,
) -> SignedCanonicalPayload
pub fn new( signature: Signature, canonical: Arc<CanonicalBytes>, ) -> SignedCanonicalPayload
Build a signed canonical payload from a signature and shared bytes.
Sourcepub fn canonical(&self) -> &Arc<CanonicalBytes> ⓘ
pub fn canonical(&self) -> &Arc<CanonicalBytes> ⓘ
Borrow the shared canonical JSON bytes.
Sourcepub fn canonical_bytes(&self) -> &[u8] ⓘ
pub fn canonical_bytes(&self) -> &[u8] ⓘ
Borrow the signed canonical JSON byte slice.
Sourcepub fn into_parts(self) -> (Signature, Arc<CanonicalBytes>)
pub fn into_parts(self) -> (Signature, Arc<CanonicalBytes>)
Consume the payload into its signature and shared canonical bytes.
Sourcepub fn into_signature_and_bytes(self) -> (Signature, Vec<u8>)
pub fn into_signature_and_bytes(self) -> (Signature, Vec<u8>)
Consume the payload into the compatibility tuple shape.
Trait Implementations§
Source§impl Clone for SignedCanonicalPayload
impl Clone for SignedCanonicalPayload
Source§fn clone(&self) -> SignedCanonicalPayload
fn clone(&self) -> SignedCanonicalPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedCanonicalPayload
impl Debug for SignedCanonicalPayload
impl Eq for SignedCanonicalPayload
Source§impl PartialEq for SignedCanonicalPayload
impl PartialEq for SignedCanonicalPayload
impl StructuralPartialEq for SignedCanonicalPayload
Auto Trait Implementations§
impl Freeze for SignedCanonicalPayload
impl RefUnwindSafe for SignedCanonicalPayload
impl Send for SignedCanonicalPayload
impl Sync for SignedCanonicalPayload
impl Unpin for SignedCanonicalPayload
impl UnsafeUnpin for SignedCanonicalPayload
impl UnwindSafe for SignedCanonicalPayload
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