pub enum BubbleComponent {
Text(Vec<TextAttributes>),
Attachment(AttachmentMeta),
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.
Variants§
Text(Vec<TextAttributes>)
A text message with associated formatting, generally representing ranges present in a NSAttributedString
Attachment(AttachmentMeta)
An attachment
App
Retracted
A component that was retracted, found by parsing the EditedMessage
Trait Implementations§
Source§impl Clone for BubbleComponent
impl Clone for BubbleComponent
Source§fn clone(&self) -> BubbleComponent
fn clone(&self) -> BubbleComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BubbleComponent
impl Debug for BubbleComponent
Source§impl PartialEq for BubbleComponent
impl PartialEq for BubbleComponent
impl StructuralPartialEq for BubbleComponent
Auto Trait Implementations§
impl Freeze for BubbleComponent
impl RefUnwindSafe for BubbleComponent
impl Send for BubbleComponent
impl Sync for BubbleComponent
impl Unpin for BubbleComponent
impl UnwindSafe for BubbleComponent
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