pub struct InputTextQuote {
pub text: FormattedText,
pub position: i32,
}
Expand description
Describes manually chosen quote from another message
Fields§
§text: FormattedText
Text of the quote; 0-getOption(“message_reply_quote_length_max”) characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed to be kept and must be kept in the quote
position: i32
Quote position in the original message in UTF-16 code units
Trait Implementations§
Source§impl Clone for InputTextQuote
impl Clone for InputTextQuote
Source§fn clone(&self) -> InputTextQuote
fn clone(&self) -> InputTextQuote
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 InputTextQuote
impl Debug for InputTextQuote
Source§impl Default for InputTextQuote
impl Default for InputTextQuote
Source§fn default() -> InputTextQuote
fn default() -> InputTextQuote
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputTextQuote
impl<'de> Deserialize<'de> for InputTextQuote
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
Source§impl PartialEq for InputTextQuote
impl PartialEq for InputTextQuote
Source§impl Serialize for InputTextQuote
impl Serialize for InputTextQuote
impl StructuralPartialEq for InputTextQuote
Auto Trait Implementations§
impl Freeze for InputTextQuote
impl RefUnwindSafe for InputTextQuote
impl Send for InputTextQuote
impl Sync for InputTextQuote
impl Unpin for InputTextQuote
impl UnwindSafe for InputTextQuote
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