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§fn clone(&self) -> EuvAlertProps
fn clone(&self) -> EuvAlertProps
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 EuvAlertProps
impl Debug for EuvAlertProps
Source§impl Default for EuvAlertProps
impl Default for EuvAlertProps
Source§fn default() -> EuvAlertProps
fn default() -> EuvAlertProps
Returns the “default value” for a type. Read more
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