#[non_exhaustive]pub struct MessageAnnotation {
pub parts: Vec<AnnotatedMessagePart>,
pub contain_entities: bool,
/* private fields */
}Available on crate features
conversations or participants only.Expand description
Represents the result of annotation for the message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parts: Vec<AnnotatedMessagePart>The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].
contain_entities: boolIndicates whether the text message contains entities.
Implementations§
Source§impl MessageAnnotation
impl MessageAnnotation
Trait Implementations§
Source§impl Clone for MessageAnnotation
impl Clone for MessageAnnotation
Source§fn clone(&self) -> MessageAnnotation
fn clone(&self) -> MessageAnnotation
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 MessageAnnotation
impl Debug for MessageAnnotation
Source§impl Default for MessageAnnotation
impl Default for MessageAnnotation
Source§fn default() -> MessageAnnotation
fn default() -> MessageAnnotation
Returns the “default value” for a type. Read more
Source§impl Message for MessageAnnotation
impl Message for MessageAnnotation
Source§impl PartialEq for MessageAnnotation
impl PartialEq for MessageAnnotation
impl StructuralPartialEq for MessageAnnotation
Auto Trait Implementations§
impl Freeze for MessageAnnotation
impl RefUnwindSafe for MessageAnnotation
impl Send for MessageAnnotation
impl Sync for MessageAnnotation
impl Unpin for MessageAnnotation
impl UnwindSafe for MessageAnnotation
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