pub enum Variant<'a> {
Tapback(usize, bool, Tapback<'a>),
Sticker(usize),
Unknown(i32),
App(CustomBalloon<'a>),
Normal,
Edited,
SharePlay,
}Expand description
Message variant container
Messages can exist as one of many different variants, this encapsulates all of the possibilities.
Variants§
Tapback(usize, bool, Tapback<'a>)
A tapback
The usize indicates the index of the message’s body() the tapback is applied to.
The boolean indicates whether the tapback was applied (true) or removed (false).
Sticker(usize)
A sticker message, either placed on another message or by itself
If the sticker is a tapback, the usize indicates the index of the message’s body() the tapback is applied to.
If the sticker is a normal message, it is treated like an attachment, and the message’s body() indicates the location.
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
A SharePlay message