pub struct KeyboardButtonBuilder { /* private fields */ }Expand description
Builder for the KeyboardButton structure
Implementations§
Source§impl KeyboardButtonBuilder
impl KeyboardButtonBuilder
Sourcepub fn new(text: String) -> Self
pub fn new(text: String) -> Self
Instantiate the builder with the fields text, request_contact, request_location, request_poll, web_app
Sourcepub fn request_contact(self, val: bool) -> Self
pub fn request_contact(self, val: bool) -> Self
Set the field request_contact to the given value
Sourcepub fn request_location(self, val: bool) -> Self
pub fn request_location(self, val: bool) -> Self
Set the field request_location to the given value
Sourcepub fn request_poll(self, val: KeyboardButtonPollType) -> Self
pub fn request_poll(self, val: KeyboardButtonPollType) -> Self
Set the field request_poll to the given value
Sourcepub fn web_app(self, val: WebAppInfo) -> Self
pub fn web_app(self, val: WebAppInfo) -> Self
Set the field web_app to the given value
Trait Implementations§
Source§impl Builder for KeyboardButtonBuilder
impl Builder for KeyboardButtonBuilder
Source§type Value = KeyboardButton
type Value = KeyboardButton
Type to be built
Auto Trait Implementations§
impl Freeze for KeyboardButtonBuilder
impl RefUnwindSafe for KeyboardButtonBuilder
impl Send for KeyboardButtonBuilder
impl Sync for KeyboardButtonBuilder
impl Unpin for KeyboardButtonBuilder
impl UnwindSafe for KeyboardButtonBuilder
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