pub struct EuvAlertProps {
pub variant: AlertVariant,
}Expand description
Props for the euv_alert component.
Defines the strongly-typed interface for an alert with variant styling.
Fields§
§variant: AlertVariantThe visual variant of the alert (success or error).
Implementations§
Source§impl EuvAlertProps
impl EuvAlertProps
pub fn get_variant(&self) -> AlertVariant
pub fn get_mut_variant(&mut self) -> &mut AlertVariant
pub fn set_variant(&mut self, val: AlertVariant) -> &mut Self
Source§impl EuvAlertProps
impl EuvAlertProps
pub fn new(variant: AlertVariant) -> Self
Trait Implementations§
Source§impl Clone for EuvAlertProps
impl Clone for EuvAlertProps
Source§impl Debug for EuvAlertProps
impl Debug for EuvAlertProps
Auto Trait Implementations§
impl Freeze for EuvAlertProps
impl RefUnwindSafe for EuvAlertProps
impl Send for EuvAlertProps
impl Sync for EuvAlertProps
impl Unpin for EuvAlertProps
impl UnsafeUnpin for EuvAlertProps
impl UnwindSafe for EuvAlertProps
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