pub enum AccountMetaKey {
PhoneNumber,
TelegramUser,
WhatsAppUser,
Locale,
Custom(String),
}Expand description
This is a re-exportation from the myc core to allow users to import both from myc-http-tools instead of the myc-core.
Variants§
PhoneNumber
Phone Number
TelegramUser
The Telegram User
WhatsAppUser
The WhatsApp User
Locale
The account locale
Custom(String)
To specify any other meta key
Specify any other meta key that is not listed here.
Trait Implementations§
Source§impl Clone for AccountMetaKey
impl Clone for AccountMetaKey
Source§fn clone(&self) -> AccountMetaKey
fn clone(&self) -> AccountMetaKey
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 AccountMetaKey
impl Debug for AccountMetaKey
Source§impl<'de> Deserialize<'de> for AccountMetaKey
impl<'de> Deserialize<'de> for AccountMetaKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountMetaKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountMetaKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AccountMetaKey
impl Display for AccountMetaKey
Source§impl FromStr for AccountMetaKey
impl FromStr for AccountMetaKey
Source§impl Hash for AccountMetaKey
impl Hash for AccountMetaKey
Source§impl PartialEq for AccountMetaKey
impl PartialEq for AccountMetaKey
Source§impl Serialize for AccountMetaKey
impl Serialize for AccountMetaKey
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToSchema for AccountMetaKey
impl ToSchema for AccountMetaKey
impl Eq for AccountMetaKey
impl StructuralPartialEq for AccountMetaKey
Auto Trait Implementations§
impl Freeze for AccountMetaKey
impl RefUnwindSafe for AccountMetaKey
impl Send for AccountMetaKey
impl Sync for AccountMetaKey
impl Unpin for AccountMetaKey
impl UnwindSafe for AccountMetaKey
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.