pub enum Service<'a> {
    iMessage,
    SMS,
    Other(&'a str),
    Unknown,
}
Expand description

Defines different types of services we can receive messages from.

Variants§

§

iMessage

An iMessage

§

SMS

A message sent as SMS

§

Other(&'a str)

Any other type of message

§

Unknown

Used when service field is not set

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.