pub enum Receipt {
Base(Box<Receipt>),
SetInclusion(Box<SetInclusionReceipt<ReceiptClaim>>),
}Expand description
Extension of the base risc0_zkvm::Receipt type.
Variants§
Base(Box<Receipt>)
SetInclusion(Box<SetInclusionReceipt<ReceiptClaim>>)
Implementations§
Source§impl Receipt
impl Receipt
Sourcepub fn abi_encode_seal(&self) -> Result<Vec<u8>, SetInclusionEncodingError>
pub fn abi_encode_seal(&self) -> Result<Vec<u8>, SetInclusionEncodingError>
Encode the receipt as a seal.
Sourcepub fn receipt(&self) -> Option<&Receipt>
pub fn receipt(&self) -> Option<&Receipt>
Get the receipt if it is a base risc0_zkvm::Receipt.
Sourcepub fn set_inclusion_receipt(
&self,
) -> Option<&SetInclusionReceipt<ReceiptClaim>>
pub fn set_inclusion_receipt( &self, ) -> Option<&SetInclusionReceipt<ReceiptClaim>>
Get the receipt if it is a set inclusion receipt.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Receipt
impl<'de> Deserialize<'de> for Receipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Receipt
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
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> 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