pub struct NotificationAction {
pub label: String,
pub url: String,
}Expand description
A link a Notification offers under its text, such as “Download” or “View order”.
Fields§
§label: String§url: StringA same-origin path such as /admin/orders/42, or an http or https URL. Anything else,
such as javascript:…, renders no link.
Trait Implementations§
Source§impl Clone for NotificationAction
impl Clone for NotificationAction
Source§impl Debug for NotificationAction
impl Debug for NotificationAction
Source§impl<'de> Deserialize<'de> for NotificationAction
impl<'de> Deserialize<'de> for NotificationAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NotificationAction
Source§impl PartialEq for NotificationAction
impl PartialEq for NotificationAction
Source§impl Serialize for NotificationAction
impl Serialize for NotificationAction
impl StructuralPartialEq for NotificationAction
Auto Trait Implementations§
impl Forget for NotificationAction
impl Freeze for NotificationAction
impl Move for NotificationAction
impl RefUnwindSafe for NotificationAction
impl Send for NotificationAction
impl Sync for NotificationAction
impl Unpin for NotificationAction
impl UnsafeUnpin for NotificationAction
impl UnwindSafe for NotificationAction
Blanket Implementations§
Source§impl<T> Assign<Json<T>> for Twhere
T: Serialize,
impl<T> Assign<Json<T>> for Twhere
T: Serialize,
Source§fn into_assignment(self) -> Assignment<Json<T>>
fn into_assignment(self) -> Assignment<Json<T>>
Convert into an
Assignment<T> value.Source§fn assign(self, assignments: &mut Assignments, projection: Projection)where
Self: Sized,
fn assign(self, assignments: &mut Assignments, projection: Projection)where
Self: Sized,
Record one or more assignments into the given [
Assignments] map at
the specified projection.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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.