pub struct Envelope {
pub outcome: Outcome,
pub receipt: Option<Receipt>,
pub trust: Option<Trust>,
pub age_seconds: Option<u64>,
pub superseded_by: Option<String>,
pub reason: Option<String>,
pub quote: Option<Quote>,
pub retry_after_seconds: Option<u64>,
pub error: Option<ErrorCode>,
}Expand description
A checked envelope.
Fields§
§outcome: OutcomeThe outcome.
receipt: Option<Receipt>The receipt (ok, stale), signature-valid and bound to the request.
trust: Option<Trust>The trust label (ok, stale).
age_seconds: Option<u64>Seconds since the mesh last confirmed the receipt (stale).
superseded_by: Option<String>Hash of a newer receipt for the same cell.
reason: Option<String>Why the receipt was superseded.
quote: Option<Quote>The quote (payment_required).
retry_after_seconds: Option<u64>Seconds to wait (rate_limited).
error: Option<ErrorCode>The failure code (bad_request, error).
Trait Implementations§
impl Eq for Envelope
impl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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