Struct coatcheck::Ticket [-] [src]

#[must_use = "you need this ticket to claim your item"]
pub struct Ticket {
    // some fields omitted
}

A Ticket is an opaque data structure that can be used to claim the associated value.

Note: Tickets can't be copied to prevent re-use (a ticket can only be exchanged for exactly one item).

Trait Implementations

impl Debug for Ticket

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl From<ClaimError> for Ticket

fn from(e: ClaimError) -> Ticket