pub enum Variant<'a> {
Normal,
Edited,
Tapback(usize, TapbackAction, Tapback<'a>),
App(CustomBalloon<'a>),
SharePlay,
Vote,
PollUpdate,
Unknown(i32),
}
Expand description
Message variant container
Messages can exist as one of many different variants, this encapsulates all of the possibilities.
Variants§
Normal
An iMessage with a standard text body that may include attachments
Edited
Tapback(usize, TapbackAction, Tapback<'a>)
App(CustomBalloon<'a>)
An iMessage app generated message
A SharePlay
message
Vote
A vote cast on a poll
PollUpdate
A new option sent to a poll
Unknown(i32)
Container for new or unknown messages
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Variant<'a>
impl<'a> RefUnwindSafe for Variant<'a>
impl<'a> Send for Variant<'a>
impl<'a> Sync for Variant<'a>
impl<'a> Unpin for Variant<'a>
impl<'a> UnwindSafe for Variant<'a>
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