Enum bounce_classify::BounceClass
source · pub enum BounceClass {
PreDefined(PreDefinedBounceClass),
UserDefined(String),
}
Variants§
PreDefined(PreDefinedBounceClass)
UserDefined(String)
Trait Implementations§
source§impl Clone for BounceClass
impl Clone for BounceClass
source§fn clone(&self) -> BounceClass
fn clone(&self) -> BounceClass
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 BounceClass
impl Debug for BounceClass
source§impl Default for BounceClass
impl Default for BounceClass
source§impl<'de> Deserialize<'de> for BounceClass
impl<'de> Deserialize<'de> for BounceClass
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 From<PreDefinedBounceClass> for BounceClass
impl From<PreDefinedBounceClass> for BounceClass
source§fn from(c: PreDefinedBounceClass) -> BounceClass
fn from(c: PreDefinedBounceClass) -> BounceClass
Converts to this type from the input type.
source§impl From<String> for BounceClass
impl From<String> for BounceClass
source§fn from(s: String) -> BounceClass
fn from(s: String) -> BounceClass
Converts to this type from the input type.
source§impl Hash for BounceClass
impl Hash for BounceClass
source§impl Into<String> for BounceClass
impl Into<String> for BounceClass
source§impl Ord for BounceClass
impl Ord for BounceClass
source§fn cmp(&self, other: &BounceClass) -> Ordering
fn cmp(&self, other: &BounceClass) -> 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 BounceClass
impl PartialEq for BounceClass
source§fn eq(&self, other: &BounceClass) -> bool
fn eq(&self, other: &BounceClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BounceClass
impl PartialOrd for BounceClass
source§fn partial_cmp(&self, other: &BounceClass) -> Option<Ordering>
fn partial_cmp(&self, other: &BounceClass) -> 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 BounceClass
impl Serialize for BounceClass
impl Eq for BounceClass
impl StructuralPartialEq for BounceClass
Auto Trait Implementations§
impl Freeze for BounceClass
impl RefUnwindSafe for BounceClass
impl Send for BounceClass
impl Sync for BounceClass
impl Unpin for BounceClass
impl UnwindSafe for BounceClass
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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<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.