pub struct BatchRedemptionResult<E> {
pub successful: Vec<(VerifiedTicket, ChainReceipt)>,
pub rejected: Vec<(VerifiedTicket, String)>,
pub will_retry: Vec<(VerifiedTicket, E)>,
}Expand description
Result of [redeem_tickets_via_selector].
Contains tickets that were successfully redeemed, rejected or left untouched.
Fields§
§successful: Vec<(VerifiedTicket, ChainReceipt)>Tickets which were successfully redeemed and removed from the ticket database.
rejected: Vec<(VerifiedTicket, String)>Tickets which were permanently rejected and removed from the ticket database.
will_retry: Vec<(VerifiedTicket, E)>Tickets which could not be redeemed and will be retried later.
Trait Implementations§
Source§impl<E: Clone> Clone for BatchRedemptionResult<E>
impl<E: Clone> Clone for BatchRedemptionResult<E>
Source§fn clone(&self) -> BatchRedemptionResult<E>
fn clone(&self) -> BatchRedemptionResult<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for BatchRedemptionResult<E>
impl<E: Debug> Debug for BatchRedemptionResult<E>
Source§impl<E> Default for BatchRedemptionResult<E>
impl<E> Default for BatchRedemptionResult<E>
Source§impl<E> Display for BatchRedemptionResult<E>
impl<E> Display for BatchRedemptionResult<E>
Source§impl<E: PartialEq> PartialEq for BatchRedemptionResult<E>
impl<E: PartialEq> PartialEq for BatchRedemptionResult<E>
impl<E: Eq> Eq for BatchRedemptionResult<E>
impl<E> StructuralPartialEq for BatchRedemptionResult<E>
Auto Trait Implementations§
impl<E> Freeze for BatchRedemptionResult<E>
impl<E> RefUnwindSafe for BatchRedemptionResult<E>where
E: RefUnwindSafe,
impl<E> Send for BatchRedemptionResult<E>where
E: Send,
impl<E> Sync for BatchRedemptionResult<E>where
E: Sync,
impl<E> Unpin for BatchRedemptionResult<E>where
E: Unpin,
impl<E> UnwindSafe for BatchRedemptionResult<E>where
E: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.