pub enum ApprovalChoice {
Decision(ApprovalDecision),
Option(String),
}Expand description
What a caller asked for, once the params have been validated.
Variants§
Decision(ApprovalDecision)
Translate this uniform decision onto the request’s own options.
Option(String)
Send this exact option token, after checking the request offers it.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalChoice
impl Clone for ApprovalChoice
Source§fn clone(&self) -> ApprovalChoice
fn clone(&self) -> ApprovalChoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApprovalChoice
impl Debug for ApprovalChoice
impl Eq for ApprovalChoice
Source§impl PartialEq for ApprovalChoice
impl PartialEq for ApprovalChoice
impl StructuralPartialEq for ApprovalChoice
Auto Trait Implementations§
impl Freeze for ApprovalChoice
impl RefUnwindSafe for ApprovalChoice
impl Send for ApprovalChoice
impl Sync for ApprovalChoice
impl Unpin for ApprovalChoice
impl UnsafeUnpin for ApprovalChoice
impl UnwindSafe for ApprovalChoice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.