pub struct ParsedBody {
pub text: Option<String>,
pub components: Vec<BubbleComponent>,
pub edited_parts: Option<EditedMessage>,
pub balloon_bundle_id: Option<String>,
}Expand description
The result of parsing a message body via Message::parse_body().
Use Message::apply_body() to apply the parsed body back to the message:
if let Ok(body) = message.parse_body(&conn) {
message.apply_body(body);
}Fields§
§text: Option<String>The text content of the message
components: Vec<BubbleComponent>The components that make up the message body
edited_parts: Option<EditedMessage>The components of the message that may have been edited or unsent
balloon_bundle_id: Option<String>The resolved balloon bundle ID, which may differ from the original
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedBody
impl RefUnwindSafe for ParsedBody
impl Send for ParsedBody
impl Sync for ParsedBody
impl Unpin for ParsedBody
impl UnsafeUnpin for ParsedBody
impl UnwindSafe for ParsedBody
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