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