pub enum BubbleComponent<'a> {
Text(Vec<TextAttributes<'a>>),
Attachment(AttachmentMeta<'a>),
App,
Retracted,
}Expand description
Defines the parts of a message bubble, i.e. the content that can exist in a single message.
§Component Types
A single iMessage contains data that may be represented across multiple bubbles.
iMessage bubbles can only contain data of one variant of this enum at a time.
Variants§
Text(Vec<TextAttributes<'a>>)
A text message with associated formatting, generally representing ranges present in a NSAttributedString
Attachment(AttachmentMeta<'a>)
An attachment
App
Retracted
A component that was retracted, found by parsing the EditedMessage
Trait Implementations§
Source§impl<'a> Debug for BubbleComponent<'a>
impl<'a> Debug for BubbleComponent<'a>
Source§impl<'a> PartialEq for BubbleComponent<'a>
impl<'a> PartialEq for BubbleComponent<'a>
impl<'a> StructuralPartialEq for BubbleComponent<'a>
Auto Trait Implementations§
impl<'a> Freeze for BubbleComponent<'a>
impl<'a> RefUnwindSafe for BubbleComponent<'a>
impl<'a> Send for BubbleComponent<'a>
impl<'a> Sync for BubbleComponent<'a>
impl<'a> Unpin for BubbleComponent<'a>
impl<'a> UnwindSafe for BubbleComponent<'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