pub struct AlertOptions {
pub backdrop_style: RespoStyle,
pub card_style: RespoStyle,
pub text: Option<String>,
pub button_text: Option<String>,
}Expand description
The options for alert modal.
Fields§
§backdrop_style: RespoStyleinline style for backdrop
card_style: RespoStyleinline style for card
text: Option<String>message of the alert modal, defaults to Alert!
text on button
Trait Implementations§
Source§impl Clone for AlertOptions
impl Clone for AlertOptions
Source§fn clone(&self) -> AlertOptions
fn clone(&self) -> AlertOptions
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 AlertOptions
impl Debug for AlertOptions
Source§impl Default for AlertOptions
impl Default for AlertOptions
Source§fn default() -> AlertOptions
fn default() -> AlertOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AlertOptions
impl RefUnwindSafe for AlertOptions
impl !Send for AlertOptions
impl !Sync for AlertOptions
impl Unpin for AlertOptions
impl UnwindSafe for AlertOptions
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