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