pub struct ButtonElementBuilder {
pub text: TextBlockObject,
pub action_id: String,
pub url: Option<String>,
pub value: Option<String>,
pub style: Option<String>,
pub confirm: Option<ConfirmationBlockObject>,
}Fields§
§text: TextBlockObject§action_id: String§url: Option<String>§value: Option<String>§style: Option<String>§confirm: Option<ConfirmationBlockObject>Implementations§
Source§impl ButtonElementBuilder
impl ButtonElementBuilder
pub fn new(text: TextBlockObject, action_id: String) -> ButtonElementBuilder
pub fn url(self, url: String) -> ButtonElementBuilder
pub fn value(self, value: String) -> ButtonElementBuilder
pub fn style(self, style: String) -> ButtonElementBuilder
pub fn confirm(self, confirm: ConfirmationBlockObject) -> ButtonElementBuilder
pub fn build(self) -> ButtonElement
Trait Implementations§
Source§impl Debug for ButtonElementBuilder
impl Debug for ButtonElementBuilder
Source§impl Default for ButtonElementBuilder
impl Default for ButtonElementBuilder
Source§fn default() -> ButtonElementBuilder
fn default() -> ButtonElementBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ButtonElementBuilder
impl RefUnwindSafe for ButtonElementBuilder
impl Send for ButtonElementBuilder
impl Sync for ButtonElementBuilder
impl Unpin for ButtonElementBuilder
impl UnwindSafe for ButtonElementBuilder
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