Struct telegram_bot_api::methods::GetChatMenuButton
source · [−]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
sourceimpl Clone for GetChatMenuButton
impl Clone for GetChatMenuButton
sourcefn clone(&self) -> GetChatMenuButton
fn clone(&self) -> GetChatMenuButton
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GetChatMenuButton
impl Debug for GetChatMenuButton
sourceimpl<'de> Deserialize<'de> for GetChatMenuButton
impl<'de> Deserialize<'de> for GetChatMenuButton
sourcefn 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
sourceimpl Methods for GetChatMenuButton
impl Methods for GetChatMenuButton
sourceimpl Serialize for GetChatMenuButton
impl Serialize for GetChatMenuButton
Auto Trait Implementations
impl RefUnwindSafe for GetChatMenuButton
impl Send for GetChatMenuButton
impl Sync for GetChatMenuButton
impl Unpin for GetChatMenuButton
impl UnwindSafe for GetChatMenuButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more