pub struct GetChatMenuButton {
pub chat_id: Option<i64>,
}
Expand description
Use this method to get the current value of the bot’s menu button in a private chat, or the default menu button. Returns MenuButton on success.
Fields§
§chat_id: Option<i64>
Unique identifier for the target private chat. If not specified, default bot’s menu button will be returned
Implementations§
Trait Implementations§
Source§impl Clone for GetChatMenuButton
impl Clone for GetChatMenuButton
Source§fn clone(&self) -> GetChatMenuButton
fn clone(&self) -> GetChatMenuButton
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 GetChatMenuButton
impl Debug for GetChatMenuButton
Source§impl<'de> Deserialize<'de> for GetChatMenuButton
impl<'de> Deserialize<'de> for GetChatMenuButton
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 Methods for GetChatMenuButton
impl Methods for GetChatMenuButton
Auto Trait Implementations§
impl Freeze for GetChatMenuButton
impl RefUnwindSafe for GetChatMenuButton
impl Send for GetChatMenuButton
impl Sync for GetChatMenuButton
impl Unpin for GetChatMenuButton
impl UnwindSafe for GetChatMenuButton
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