pub enum TraderIdOrEmail {
Id(UserId),
Email(String),
}
Variants§
Trait Implementations§
Source§impl Clone for TraderIdOrEmail
impl Clone for TraderIdOrEmail
Source§fn clone(&self) -> TraderIdOrEmail
fn clone(&self) -> TraderIdOrEmail
Returns a duplicate 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 TraderIdOrEmail
impl Debug for TraderIdOrEmail
Source§impl<'de> Deserialize<'de> for TraderIdOrEmail
impl<'de> Deserialize<'de> for TraderIdOrEmail
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 Display for TraderIdOrEmail
impl Display for TraderIdOrEmail
Source§impl FromStr for TraderIdOrEmail
impl FromStr for TraderIdOrEmail
Source§impl JsonSchema for TraderIdOrEmail
impl JsonSchema for TraderIdOrEmail
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for TraderIdOrEmail
impl Ord for TraderIdOrEmail
Source§fn cmp(&self, other: &TraderIdOrEmail) -> Ordering
fn cmp(&self, other: &TraderIdOrEmail) -> 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 TraderIdOrEmail
impl PartialEq for TraderIdOrEmail
Source§impl PartialOrd for TraderIdOrEmail
impl PartialOrd for TraderIdOrEmail
Source§impl Serialize for TraderIdOrEmail
impl Serialize for TraderIdOrEmail
impl Eq for TraderIdOrEmail
impl StructuralPartialEq for TraderIdOrEmail
Auto Trait Implementations§
impl Freeze for TraderIdOrEmail
impl RefUnwindSafe for TraderIdOrEmail
impl Send for TraderIdOrEmail
impl Sync for TraderIdOrEmail
impl Unpin for TraderIdOrEmail
impl UnwindSafe for TraderIdOrEmail
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