pub struct ButtonElement {
pub text: TextObject,
pub action_id: String,
pub value: Option<String>,
pub url: Option<String>,
pub style: Option<ButtonStyle>,
}Expand description
Button element.
Fields§
§text: TextObject§action_id: String§value: Option<String>§url: Option<String>§style: Option<ButtonStyle>Trait Implementations§
Source§impl Clone for ButtonElement
impl Clone for ButtonElement
Source§fn clone(&self) -> ButtonElement
fn clone(&self) -> ButtonElement
Returns a duplicate 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 moreSource§impl Debug for ButtonElement
impl Debug for ButtonElement
Auto Trait Implementations§
impl Freeze for ButtonElement
impl RefUnwindSafe for ButtonElement
impl Send for ButtonElement
impl Sync for ButtonElement
impl Unpin for ButtonElement
impl UnwindSafe for ButtonElement
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