pub struct TextQuote {
pub text: String,
pub entities: Option<Vec<MessageEntity>>,
pub position: u32,
pub is_manual: Option<bool>,
}Expand description
Information about the quoted part of a message that is replied to.
Fields§
§text: StringText of the quoted part of the message.
entities: Option<Vec<MessageEntity>>Special entities in the quote.
position: u32Approximate quote position in the original message (UTF-16 offset).
is_manual: Option<bool>true if the quote was chosen manually by the message sender.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextQuote
impl<'de> Deserialize<'de> for TextQuote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextQuote
impl RefUnwindSafe for TextQuote
impl Send for TextQuote
impl Sync for TextQuote
impl Unpin for TextQuote
impl UnsafeUnpin for TextQuote
impl UnwindSafe for TextQuote
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