Struct contack::contact_information::ContactInformation [−][src]
pub struct ContactInformation {
pub pid: String,
pub pref: u8,
pub value: String,
pub platform: ContactPlatform,
pub typ: Option<Type>,
}
Expand description
Represents any way which a contact can be contacted.
This may be a phone number, an email etc. You can add
any number of them to a Contact
.
Fields
pid: String
The pid, used for representing this amongst
other ContactInformation
s.
pref: u8
The Preference Value. In this implementation 0 represents that it is neutral, not either way.
value: String
The Value (for example johndoe@example.com)
platform: ContactPlatform
The platform which this is on
typ: Option<Type>
The type
Implementations
Creates a new ContactInformation
This also auto generates a pid between 0 and 100
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContactInformation
impl Send for ContactInformation
impl Sync for ContactInformation
impl Unpin for ContactInformation
impl UnwindSafe for ContactInformation
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more