Struct respo::dialog::AlertOptions
source · 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: RespoStyle
inline style for backdrop
card_style: RespoStyle
inline 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 copy 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 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