pub enum RejectionReason {
UnsolicitedService,
BadService,
IncorrectAmount,
}
Variants§
Trait Implementations§
source§impl Clone for RejectionReason
impl Clone for RejectionReason
source§fn clone(&self) -> RejectionReason
fn clone(&self) -> RejectionReason
Returns a copy 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 Debug for RejectionReason
impl Debug for RejectionReason
source§impl Default for RejectionReason
impl Default for RejectionReason
source§fn default() -> RejectionReason
fn default() -> RejectionReason
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RejectionReason
impl<'de> Deserialize<'de> for RejectionReason
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RejectionReason
impl Hash for RejectionReason
source§impl Ord for RejectionReason
impl Ord for RejectionReason
source§fn cmp(&self, other: &RejectionReason) -> Ordering
fn cmp(&self, other: &RejectionReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RejectionReason
impl PartialEq for RejectionReason
source§fn eq(&self, other: &RejectionReason) -> bool
fn eq(&self, other: &RejectionReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RejectionReason
impl PartialOrd for RejectionReason
source§fn partial_cmp(&self, other: &RejectionReason) -> Option<Ordering>
fn partial_cmp(&self, other: &RejectionReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RejectionReason
impl Serialize for RejectionReason
impl Copy for RejectionReason
impl Eq for RejectionReason
impl StructuralPartialEq for RejectionReason
Auto Trait Implementations§
impl Freeze for RejectionReason
impl RefUnwindSafe for RejectionReason
impl Send for RejectionReason
impl Sync for RejectionReason
impl Unpin for RejectionReason
impl UnwindSafe for RejectionReason
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