pub enum Consumption {
Fresh(Box<AuthorizationCode>),
Replayed {
family: Option<String>,
},
Expired,
Unknown,
}Expand description
What happened when a code was presented.
Variants§
Fresh(Box<AuthorizationCode>)
The code was live and is now spent. Carry on with the exchange.
Replayed
Already spent. The caller must revoke family before refusing.
Expired
Still unspent, but past its lifetime.
Unknown
No such code.
Trait Implementations§
Source§impl Clone for Consumption
impl Clone for Consumption
Auto Trait Implementations§
impl Freeze for Consumption
impl RefUnwindSafe for Consumption
impl Send for Consumption
impl Sync for Consumption
impl Unpin for Consumption
impl UnsafeUnpin for Consumption
impl UnwindSafe for Consumption
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