pub enum ContactPlatform {
Email,
Tel,
Discord,
Matrix,
Skype,
Aim,
Jabber,
Icq,
Groupwise,
Gadugadu,
Unknown,
}Expand description
Represents a platform of which a ContactInformation is on.
For example an email will use Email and a phone number Tel.
Variants§
An email
Tel
A phone number
Discord
A discord
Matrix
A matrix
Skype
A skype username/email
Aim
For AOL instant messanger
Jabber
Jabber
Icq
Icq
Groupwise
Groupwise
Gadugadu
Gadugadu
Unknown
Xmpp property in VCard. You should specify a
Uri in the ContactInformation
Trait Implementations§
Source§impl<'a> AsExpression<Contack_contact_platform> for &'a ContactPlatform
impl<'a> AsExpression<Contack_contact_platform> for &'a ContactPlatform
Source§type Expression = Bound<Contack_contact_platform, &'a ContactPlatform>
type Expression = Bound<Contack_contact_platform, &'a ContactPlatform>
The expression being returned
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl AsExpression<Contack_contact_platform> for ContactPlatform
impl AsExpression<Contack_contact_platform> for ContactPlatform
Source§type Expression = Bound<Contack_contact_platform, ContactPlatform>
type Expression = Bound<Contack_contact_platform, ContactPlatform>
The expression being returned
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl<'a> AsExpression<Nullable<Contack_contact_platform>> for &'a ContactPlatform
impl<'a> AsExpression<Nullable<Contack_contact_platform>> for &'a ContactPlatform
Source§type Expression = Bound<Nullable<Contack_contact_platform>, &'a ContactPlatform>
type Expression = Bound<Nullable<Contack_contact_platform>, &'a ContactPlatform>
The expression being returned
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl AsExpression<Nullable<Contack_contact_platform>> for ContactPlatform
impl AsExpression<Nullable<Contack_contact_platform>> for ContactPlatform
Source§type Expression = Bound<Nullable<Contack_contact_platform>, ContactPlatform>
type Expression = Bound<Nullable<Contack_contact_platform>, ContactPlatform>
The expression being returned
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
Source§impl Clone for ContactPlatform
impl Clone for ContactPlatform
Source§fn clone(&self) -> ContactPlatform
fn clone(&self) -> ContactPlatform
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 ContactPlatform
impl Debug for ContactPlatform
Source§impl<'r> Decode<'r, Postgres> for ContactPlatform
impl<'r> Decode<'r, Postgres> for ContactPlatform
Source§impl Default for ContactPlatform
impl Default for ContactPlatform
Source§impl Display for ContactPlatform
impl Display for ContactPlatform
Source§impl<'q, DB: Database> Encode<'q, DB> for ContactPlatform
impl<'q, DB: Database> Encode<'q, DB> for ContactPlatform
Source§fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer,
) -> IsNull
fn encode_by_ref( &self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn size_hint(&self) -> usize
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl From<ContactPlatform> for u8
impl From<ContactPlatform> for u8
Source§fn from(cp: ContactPlatform) -> Self
fn from(cp: ContactPlatform) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ContactPlatform
impl From<u8> for ContactPlatform
Source§impl Ord for ContactPlatform
impl Ord for ContactPlatform
Source§fn cmp(&self, other: &ContactPlatform) -> Ordering
fn cmp(&self, other: &ContactPlatform) -> 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 ContactPlatform
impl PartialEq for ContactPlatform
Source§impl PartialOrd for ContactPlatform
impl PartialOrd for ContactPlatform
Source§impl<DB: Backend> ToSql<Contack_contact_platform, DB> for ContactPlatform
impl<DB: Backend> ToSql<Contack_contact_platform, DB> for ContactPlatform
Source§impl<DB> ToSql<Nullable<Contack_contact_platform>, DB> for ContactPlatform
impl<DB> ToSql<Nullable<Contack_contact_platform>, DB> for ContactPlatform
Source§impl Type<Postgres> for ContactPlatform
impl Type<Postgres> for ContactPlatform
impl Eq for ContactPlatform
impl StructuralPartialEq for ContactPlatform
Auto Trait Implementations§
impl Freeze for ContactPlatform
impl RefUnwindSafe for ContactPlatform
impl Send for ContactPlatform
impl Sync for ContactPlatform
impl Unpin for ContactPlatform
impl UnwindSafe for ContactPlatform
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self to an expression for Diesel’s query builder. Read more