pub enum NotificationType {
    Info,
    Warn,
    Error,
    Custom(Classes),
}Expand description
Standard notification type.
Variants§
Info
Represents some informative message for the user.
Warn
Represents some warning.
Error
Represents some error message.
Custom(Classes)
Custom notification type.
You can use this option when you want to set the custom style of your notification but don’t want to write an entire custom component from scratch.
Trait Implementations§
Source§impl Clone for NotificationType
 
impl Clone for NotificationType
Source§fn clone(&self) -> NotificationType
 
fn clone(&self) -> NotificationType
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 NotificationType
 
impl Debug for NotificationType
Source§impl Default for NotificationType
 
impl Default for NotificationType
Source§fn default() -> NotificationType
 
fn default() -> NotificationType
Returns the “default value” for a type. Read more
Source§impl From<&NotificationType> for Classes
 
impl From<&NotificationType> for Classes
Source§fn from(notification_type: &NotificationType) -> Self
 
fn from(notification_type: &NotificationType) -> Self
Converts to this type from the input type.
Source§impl From<&str> for NotificationType
 
impl From<&str> for NotificationType
Source§impl PartialEq for NotificationType
 
impl PartialEq for NotificationType
impl StructuralPartialEq for NotificationType
Auto Trait Implementations§
impl Freeze for NotificationType
impl RefUnwindSafe for NotificationType
impl !Send for NotificationType
impl !Sync for NotificationType
impl Unpin for NotificationType
impl UnwindSafe for NotificationType
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
 
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
 
fn into_prop_value(self) -> Option<T>
Convert 
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
 
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
 
fn into_prop_value(self) -> T
Convert 
self to a value of a Properties struct.