Struct frankenstein::api_params::SetChatMenuButtonParams
source · pub struct SetChatMenuButtonParams {
pub chat_id: Option<i64>,
pub menu_button: Option<MenuButton>,
}
Fields§
§chat_id: Option<i64>
Implementations§
source§impl SetChatMenuButtonParams
impl SetChatMenuButtonParams
sourcepub fn builder() -> SetChatMenuButtonParamsBuilder<((), ())>
pub fn builder() -> SetChatMenuButtonParamsBuilder<((), ())>
Create a builder for building SetChatMenuButtonParams
.
On the builder, call .chat_id(...)
(optional), .menu_button(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SetChatMenuButtonParams
.
Trait Implementations§
source§impl Clone for SetChatMenuButtonParams
impl Clone for SetChatMenuButtonParams
source§fn clone(&self) -> SetChatMenuButtonParams
fn clone(&self) -> SetChatMenuButtonParams
Returns a copy 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 SetChatMenuButtonParams
impl Debug for SetChatMenuButtonParams
source§impl<'de> Deserialize<'de> for SetChatMenuButtonParams
impl<'de> Deserialize<'de> for SetChatMenuButtonParams
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 PartialEq for SetChatMenuButtonParams
impl PartialEq for SetChatMenuButtonParams
source§fn eq(&self, other: &SetChatMenuButtonParams) -> bool
fn eq(&self, other: &SetChatMenuButtonParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SetChatMenuButtonParams
impl Serialize for SetChatMenuButtonParams
impl Eq for SetChatMenuButtonParams
impl StructuralPartialEq for SetChatMenuButtonParams
Auto Trait Implementations§
impl Freeze for SetChatMenuButtonParams
impl RefUnwindSafe for SetChatMenuButtonParams
impl Send for SetChatMenuButtonParams
impl Sync for SetChatMenuButtonParams
impl Unpin for SetChatMenuButtonParams
impl UnwindSafe for SetChatMenuButtonParams
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