pub enum NotificationsPosition {
TopLeft,
TopRight,
BottomRight,
BottomLeft,
Custom(Classes),
}
Expand description
Notifications position on the screen
Variants§
TopLeft
Spawned notifications will be places in the top left corner of the screen
TopRight
Spawned notifications will be places in the top right corner of the screen
BottomRight
Spawned notifications will be places in the bottom right corner of the screen
BottomLeft
Spawned notifications will be places in the bottom left corner of the screen
Custom(Classes)
Can be used to specify custom css class for the notifications container
Note
The Custom class will overwrite any default provider CSS including style, position, etc.
Trait Implementations§
source§impl Clone for NotificationsPosition
impl Clone for NotificationsPosition
source§fn clone(&self) -> NotificationsPosition
fn clone(&self) -> NotificationsPosition
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 NotificationsPosition
impl Debug for NotificationsPosition
source§impl From<&NotificationsPosition> for Vec<Classes>
impl From<&NotificationsPosition> for Vec<Classes>
source§fn from(position: &NotificationsPosition) -> Self
fn from(position: &NotificationsPosition) -> Self
Converts to this type from the input type.
source§impl From<&str> for NotificationsPosition
impl From<&str> for NotificationsPosition
source§impl PartialEq for NotificationsPosition
impl PartialEq for NotificationsPosition
source§fn eq(&self, other: &NotificationsPosition) -> bool
fn eq(&self, other: &NotificationsPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationsPosition
Auto Trait Implementations§
impl RefUnwindSafe for NotificationsPosition
impl !Send for NotificationsPosition
impl !Sync for NotificationsPosition
impl Unpin for NotificationsPosition
impl UnwindSafe for NotificationsPosition
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.