pub struct ButtonElement {
pub id: String,
pub text: String,
pub value: Option<String>,
pub style: ButtonStyle,
pub url: Option<String>,
}Expand description
A clickable button element.
Fields§
§id: StringUnique identifier for the button (used in callbacks).
text: StringDisplay text on the button.
value: Option<String>Optional payload value attached to the button.
style: ButtonStyleVisual style of the button.
url: Option<String>Optional URL the button navigates to.
Implementations§
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
Source§impl<'de> Deserialize<'de> for ButtonElement
impl<'de> Deserialize<'de> for ButtonElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ButtonElement
impl RefUnwindSafe for ButtonElement
impl Send for ButtonElement
impl Sync for ButtonElement
impl Unpin for ButtonElement
impl UnsafeUnpin 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