#[non_exhaustive]pub struct RequestMessagesSendText {
pub chat_id: ChatId,
pub text: Option<String>,
pub reply_msg_id: Option<MsgId>,
pub forward_chat_id: Option<ChatId>,
pub forward_msg_id: Option<MsgId>,
pub inline_keyboard_markup: Option<String>,
pub format: Option<MessageFormat>,
pub parse_mode: Option<ParseMode>,
}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.chat_id: ChatId§text: Option<String>§reply_msg_id: Option<MsgId>§forward_chat_id: Option<ChatId>§forward_msg_id: Option<MsgId>§inline_keyboard_markup: Option<String>§format: Option<MessageFormat>§parse_mode: Option<ParseMode>Implementations§
Source§impl RequestMessagesSendText
impl RequestMessagesSendText
pub fn _get_chat_id(&self) -> Option<&ChatId>
Source§impl RequestMessagesSendText
impl RequestMessagesSendText
pub fn _get_multipart(&self) -> &MultipartName
Source§impl RequestMessagesSendText
impl RequestMessagesSendText
Sourcepub fn with_reply_msg_id(self, value: MsgId) -> Self
pub fn with_reply_msg_id(self, value: MsgId) -> Self
Sets the field reply_msg_id
Sourcepub fn with_forward_chat_id(self, value: ChatId) -> Self
pub fn with_forward_chat_id(self, value: ChatId) -> Self
Sets the field forward_chat_id
Sourcepub fn with_forward_msg_id(self, value: MsgId) -> Self
pub fn with_forward_msg_id(self, value: MsgId) -> Self
Sets the field forward_msg_id
Sourcepub fn with_inline_keyboard_markup(self, value: String) -> Self
pub fn with_inline_keyboard_markup(self, value: String) -> Self
Sets the field inline_keyboard_markup
Sourcepub fn with_format(self, value: MessageFormat) -> Self
pub fn with_format(self, value: MessageFormat) -> Self
Sets the field format
Sourcepub fn with_parse_mode(self, value: ParseMode) -> Self
pub fn with_parse_mode(self, value: ParseMode) -> Self
Sets the field parse_mode
Trait Implementations§
Source§impl BotRequest for RequestMessagesSendText
impl BotRequest for RequestMessagesSendText
const METHOD: &'static str = "messages/sendText"
type Args = ChatId
type RequestType = RequestMessagesSendText
type ResponseType = ResponseMessagesSendText
fn new(chat_id: ChatId) -> Self
fn get_chat_id(&self) -> Option<&ChatId>
fn get_multipart(&self) -> &MultipartName
const HTTP_METHOD: HTTPMethod = HTTPMethod::GET
Source§impl Clone for RequestMessagesSendText
impl Clone for RequestMessagesSendText
Source§fn clone(&self) -> RequestMessagesSendText
fn clone(&self) -> RequestMessagesSendText
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 RequestMessagesSendText
impl Debug for RequestMessagesSendText
Source§impl Default for RequestMessagesSendText
impl Default for RequestMessagesSendText
Source§fn default() -> RequestMessagesSendText
fn default() -> RequestMessagesSendText
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestMessagesSendText
impl<'de> Deserialize<'de> for RequestMessagesSendText
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 MessageTextSetters for RequestMessagesSendText
impl MessageTextSetters for RequestMessagesSendText
Source§fn set_text(self, parser: MessageTextParser) -> Result<Self>
fn set_text(self, parser: MessageTextParser) -> Result<Self>
Source§fn set_keyboard(self, keyboard: Keyboard) -> Result<Self>
fn set_keyboard(self, keyboard: Keyboard) -> Result<Self>
Auto Trait Implementations§
impl Freeze for RequestMessagesSendText
impl RefUnwindSafe for RequestMessagesSendText
impl Send for RequestMessagesSendText
impl Sync for RequestMessagesSendText
impl Unpin for RequestMessagesSendText
impl UnwindSafe for RequestMessagesSendText
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