pub struct Receipt(/* private fields */);Implementations§
Methods from Deref<Target = Digest>§
pub const DIGEST_SIZE: usize = 32usize
sourcepub fn validate(&self, image: impl AsRef<[u8]>) -> bool
pub fn validate(&self, image: impl AsRef<[u8]>) -> bool
Validate the digest against the given image.
The image is hashed with SHA-256 and compared to the digest.
Returns true if the digest matches the image.
sourcepub fn short_description(&self) -> String
pub fn short_description(&self) -> String
The first four bytes of the digest as a hexadecimal string.
Trait Implementations§
source§impl EnvelopeDecodable for Receipt
impl EnvelopeDecodable for Receipt
fn from_envelope(envelope: Envelope) -> Result<Self>
source§impl PartialEq for Receipt
impl PartialEq for Receipt
impl EnvelopeCodable for Receipt
impl Eq for Receipt
impl StructuralEq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnwindSafe for Receipt
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