pub struct SystemPopupButton {
pub id: String,
pub label: String,
pub role: String,
pub dangerous: bool,
pub outcome_hint: Option<String>,
}Expand description
One button on a SystemPopup.
Fields§
§id: StringStable identifier for the button.
label: StringVisible button label.
role: StringSemantic role ("cancel" / "destructive" / "default").
dangerous: boolWhether tapping this button performs a destructive action.
outcome_hint: Option<String>Optional outcome hint (e.g. "grants location permission").
Trait Implementations§
Source§impl Clone for SystemPopupButton
impl Clone for SystemPopupButton
Source§fn clone(&self) -> SystemPopupButton
fn clone(&self) -> SystemPopupButton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SystemPopupButton
impl Debug for SystemPopupButton
Source§impl<'de> Deserialize<'de> for SystemPopupButton
impl<'de> Deserialize<'de> for SystemPopupButton
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 SystemPopupButton
impl RefUnwindSafe for SystemPopupButton
impl Send for SystemPopupButton
impl Sync for SystemPopupButton
impl Unpin for SystemPopupButton
impl UnsafeUnpin for SystemPopupButton
impl UnwindSafe for SystemPopupButton
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