pub struct ButtonBuilder { /* private fields */ }Expand description
Builder for Button.
Implementations§
source§impl ButtonBuilder
 
impl ButtonBuilder
sourcepub fn with_command<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
 
pub fn with_command<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
тело команды (текст, который будет отправлен от пользователя и придёт в поле body)
sourcepub fn with_label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
 
pub fn with_label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
наименование команды (текст кнопки)
sourcepub fn with_data<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
 
pub fn with_data<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
(Default: {}) - объект с данными, которые будут отправлены в качестве параметров команды при нажатие на кнопку
sourcepub fn with_opts<VALUE: Into<ButtonOptions>>(
    &mut self,
    value: VALUE
) -> &mut Self
 
pub fn with_opts<VALUE: Into<ButtonOptions>>( &mut self, value: VALUE ) -> &mut Self
объект с клиентскими опциями кнопки
Trait Implementations§
source§impl Clone for ButtonBuilder
 
impl Clone for ButtonBuilder
source§fn clone(&self) -> ButtonBuilder
 
fn clone(&self) -> ButtonBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ButtonBuilder
impl Send for ButtonBuilder
impl Sync for ButtonBuilder
impl Unpin for ButtonBuilder
impl UnwindSafe for ButtonBuilder
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