pub struct SavePreparedKeyboardButtonBuilder<'a> { /* private fields */ }Expand description
Builder for the [savePreparedKeyboardButton] API method.
Implementations§
Source§impl<'a> SavePreparedKeyboardButtonBuilder<'a>
impl<'a> SavePreparedKeyboardButtonBuilder<'a>
Sourcepub fn allow_user_chats(self, val: bool) -> Self
pub fn allow_user_chats(self, val: bool) -> Self
Sets the allow_user_chats parameter.
Sourcepub fn allow_bot_chats(self, val: bool) -> Self
pub fn allow_bot_chats(self, val: bool) -> Self
Sets the allow_bot_chats parameter.
Sourcepub fn allow_group_chats(self, val: bool) -> Self
pub fn allow_group_chats(self, val: bool) -> Self
Sets the allow_group_chats parameter.
Sourcepub fn allow_channel_chats(self, val: bool) -> Self
pub fn allow_channel_chats(self, val: bool) -> Self
Sets the allow_channel_chats parameter.
Sourcepub async fn send(self) -> Result<PreparedKeyboardButton>
pub async fn send(self) -> Result<PreparedKeyboardButton>
Sends the request to the Telegram Bot API.
Trait Implementations§
Source§impl<'a> IntoFuture for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> IntoFuture for SavePreparedKeyboardButtonBuilder<'a>
Source§type Output = Result<PreparedKeyboardButton, TelegramError>
type Output = Result<PreparedKeyboardButton, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SavePreparedKeyboardButtonBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <SavePreparedKeyboardButtonBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> !RefUnwindSafe for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> Send for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> Sync for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> Unpin for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> UnsafeUnpin for SavePreparedKeyboardButtonBuilder<'a>
impl<'a> !UnwindSafe for SavePreparedKeyboardButtonBuilder<'a>
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