pub struct TextQuote {
pub text: FormattedText,
pub position: i32,
pub is_manual: bool,
}
Expand description
Describes manually or automatically chosen quote from another message
Fields§
§text: FormattedText
Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities can be present in the text
position: i32
Approximate quote position in the original message in UTF-16 code units as specified by the message sender
is_manual: bool
True, if the quote was manually chosen 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
impl StructuralPartialEq for TextQuote
Auto Trait Implementations§
impl Freeze for TextQuote
impl RefUnwindSafe for TextQuote
impl Send for TextQuote
impl Sync for TextQuote
impl Unpin 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