#[non_exhaustive]pub struct TextQuote {
pub text: String,
pub position: i64,
pub entities: Option<Vec<MessageEntity>>,
pub is_manual: Option<bool>,
}Expand description
The quoted part of a message that is replied to by the given message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringText of the quoted part of a message that is replied to by the given message.
position: i64Approximate quote position in the original message in UTF-16 code units.
entities: Option<Vec<MessageEntity>>Special entities that appear in the quote.
is_manual: Option<bool>true if the quote was chosen manually by the message sender.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextQuote
impl<'de> Deserialize<'de> for TextQuote
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextQuote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TextQuote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TextQuote
impl Serialize for TextQuote
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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