pub struct ParsedBody {
pub text: Option<String>,
pub components: Vec<BubbleComponent>,
pub edited_parts: Option<EditedMessage>,
pub balloon_bundle_id: Option<String>,
}Expand description
Body data returned by 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>Plain body text.
components: Vec<BubbleComponent>Parsed body components.
edited_parts: Option<EditedMessage>Parsed edit/unsent metadata.
balloon_bundle_id: Option<String>Resolved balloon bundle ID.
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