pub struct SetMyCommandsBuilder { /* private fields */ }Expand description
Builder for the SetMyCommands structure
Implementations§
Source§impl SetMyCommandsBuilder
impl SetMyCommandsBuilder
Sourcepub fn commands(self, val: Vec<BotCommand>) -> Self
pub fn commands(self, val: Vec<BotCommand>) -> Self
Set the field commands to the given value
Sourcepub fn scope(self, val: BotCommandScope) -> Self
pub fn scope(self, val: BotCommandScope) -> Self
Set the field scope to the given value
Sourcepub fn language_code(self, val: String) -> Self
pub fn language_code(self, val: String) -> Self
Set the field language_code to the given value
Trait Implementations§
Source§impl Builder for SetMyCommandsBuilder
impl Builder for SetMyCommandsBuilder
Source§type Value = SetMyCommands
type Value = SetMyCommands
Type to be built
Auto Trait Implementations§
impl Freeze for SetMyCommandsBuilder
impl RefUnwindSafe for SetMyCommandsBuilder
impl Send for SetMyCommandsBuilder
impl Sync for SetMyCommandsBuilder
impl Unpin for SetMyCommandsBuilder
impl UnwindSafe for SetMyCommandsBuilder
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