#[non_exhaustive]pub struct RequestMessagesSendFile {
pub chat_id: ChatId,
pub multipart: MultipartName,
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§multipart: MultipartName§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 RequestMessagesSendFile
impl RequestMessagesSendFile
pub fn _get_chat_id(&self) -> Option<&ChatId>
Source§impl RequestMessagesSendFile
impl RequestMessagesSendFile
pub fn _get_multipart(&self) -> &MultipartName
Source§impl RequestMessagesSendFile
impl RequestMessagesSendFile
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 RequestMessagesSendFile
impl BotRequest for RequestMessagesSendFile
const METHOD: &'static str = "messages/sendFile"
const HTTP_METHOD: HTTPMethod = HTTPMethod::POST
type Args = (ChatId, MultipartName)
type RequestType = RequestMessagesSendFile
type ResponseType = ResponseMessagesSendFile
fn new((chat_id, multipart): (ChatId, MultipartName)) -> Self
fn get_chat_id(&self) -> Option<&ChatId>
fn get_multipart(&self) -> &MultipartName
Source§impl Clone for RequestMessagesSendFile
impl Clone for RequestMessagesSendFile
Source§fn clone(&self) -> RequestMessagesSendFile
fn clone(&self) -> RequestMessagesSendFile
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 RequestMessagesSendFile
impl Debug for RequestMessagesSendFile
Source§impl Default for RequestMessagesSendFile
impl Default for RequestMessagesSendFile
Source§fn default() -> RequestMessagesSendFile
fn default() -> RequestMessagesSendFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestMessagesSendFile
impl<'de> Deserialize<'de> for RequestMessagesSendFile
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 RequestMessagesSendFile
impl MessageTextSetters for RequestMessagesSendFile
Auto Trait Implementations§
impl Freeze for RequestMessagesSendFile
impl RefUnwindSafe for RequestMessagesSendFile
impl Send for RequestMessagesSendFile
impl Sync for RequestMessagesSendFile
impl Unpin for RequestMessagesSendFile
impl UnwindSafe for RequestMessagesSendFile
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