pub enum BubbleComponent {
Run(Vec<AttributedRange>),
App,
Retracted,
}Expand description
Component emitted for one logical message part.
§Component Types
A single iMessage contains data that may be represented across multiple bubbles.
Each bubble corresponds to one __kIMMessagePartAttributeName index in the
underlying NSAttributedString; the
Run groups every attributed range that shares that part index.
Variants§
Run(Vec<AttributedRange>)
One bubble’s worth of attributed body content. Each contained
AttributedRange models a single NSAttributedString attribute run
(a byte range plus its attribute dictionary); adjacent ranges that
share a __kIMMessagePartAttributeName index share the bubble.
A run may interleave text ranges (AttributedRange::attachment is
None) with inline-attachment ranges (e.g. stickers rendered inline
like emoji), preserving their original order.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BubbleComponent
impl Debug for BubbleComponent
Source§impl PartialEq for BubbleComponent
impl PartialEq for BubbleComponent
Source§fn eq(&self, other: &BubbleComponent) -> bool
fn eq(&self, other: &BubbleComponent) -> bool
self and other values to be equal, and is used by ==.