pub struct MessageTextParser {
pub text: Vec<MessageTextFormat>,
pub parse_mode: ParseMode,
}Expand description
Message text parse struct
Fields§
§text: Vec<MessageTextFormat>Array of text formats
parse_mode: ParseMode§Parse mode
HTML- HTMLMarkdownV2- Markdown
Trait Implementations§
Source§impl Clone for MessageTextParser
impl Clone for MessageTextParser
Source§fn clone(&self) -> MessageTextParser
fn clone(&self) -> MessageTextParser
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 MessageTextParser
impl Debug for MessageTextParser
Source§impl Default for MessageTextParser
impl Default for MessageTextParser
Source§fn default() -> MessageTextParser
fn default() -> MessageTextParser
Returns the “default value” for a type. Read more
Source§impl MessageTextHTMLParser for MessageTextParser
impl MessageTextHTMLParser for MessageTextParser
Source§fn add(&mut self, text: MessageTextFormat) -> Self
fn add(&mut self, text: MessageTextFormat) -> Self
Auto Trait Implementations§
impl Freeze for MessageTextParser
impl RefUnwindSafe for MessageTextParser
impl Send for MessageTextParser
impl Sync for MessageTextParser
impl Unpin for MessageTextParser
impl UnwindSafe for MessageTextParser
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