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 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 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
source§fn eq(&self, other: &NotificationType) -> bool
fn eq(&self, other: &NotificationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationType
Auto Trait Implementations§
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
§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.