pub enum Variant<'a> {
    Reaction(usizeboolReaction),
    Sticker(usize),
    Unknown(i32),
    App(CustomBalloon<'a>),
    Normal,
    Edited,
}
Expand description

Message variant container

Messages can exist as one of many different variants, this encapsulates all of the possibilities.

Variants§

§

Reaction(usizeboolReaction)

A reaction to another message

§

Sticker(usize)

A sticker message, either placed on another message or by itself

§

Unknown(i32)

Container for new or unknown messages

§

App(CustomBalloon<'a>)

An iMessage app generated message

§

Normal

An iMessage with a standard text body that may include attachments

§

Edited

A message that has been edited or unsent

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.