pub struct ReplyKeyboardMarkupBuilder { /* private fields */ }Expand description
Builder for the ReplyKeyboardMarkup structure
Implementations§
Source§impl ReplyKeyboardMarkupBuilder
impl ReplyKeyboardMarkupBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Instantiate the builder with the fields keyboard, is_persistent, resize_keyboard, one_time_keyboard, input_field_placeholder, selective
Sourcepub fn keyboard(self, val: Vec<Vec<KeyboardButton>>) -> Self
pub fn keyboard(self, val: Vec<Vec<KeyboardButton>>) -> Self
Set the field keyboard to the given value
Sourcepub fn is_persistent(self, val: bool) -> Self
pub fn is_persistent(self, val: bool) -> Self
Set the field is_persistent to the given value
Sourcepub fn resize_keyboard(self, val: bool) -> Self
pub fn resize_keyboard(self, val: bool) -> Self
Set the field resize_keyboard to the given value
Sourcepub fn one_time_keyboard(self, val: bool) -> Self
pub fn one_time_keyboard(self, val: bool) -> Self
Set the field one_time_keyboard to the given value
Sourcepub fn input_field_placeholder(self, val: String) -> Self
pub fn input_field_placeholder(self, val: String) -> Self
Set the field input_field_placeholder to the given value
Trait Implementations§
Source§impl Builder for ReplyKeyboardMarkupBuilder
impl Builder for ReplyKeyboardMarkupBuilder
Source§type Value = ReplyKeyboardMarkup
type Value = ReplyKeyboardMarkup
Type to be built
Auto Trait Implementations§
impl Freeze for ReplyKeyboardMarkupBuilder
impl RefUnwindSafe for ReplyKeyboardMarkupBuilder
impl Send for ReplyKeyboardMarkupBuilder
impl Sync for ReplyKeyboardMarkupBuilder
impl Unpin for ReplyKeyboardMarkupBuilder
impl UnwindSafe for ReplyKeyboardMarkupBuilder
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