pub struct NotificationAction {
pub title: Option<String>,
pub action_route: Option<Vec<String>>,
}
Expand description
NotificationAction : An action that can be performed on a notification
Fields§
§title: Option<String>
The friendly name for this action
action_route: Option<Vec<String>>
The HTTP code and path to request in order to perform this action.
Implementations§
Source§impl NotificationAction
impl NotificationAction
Sourcepub fn new() -> NotificationAction
pub fn new() -> NotificationAction
An action that can be performed on a notification
Trait Implementations§
Source§impl Clone for NotificationAction
impl Clone for NotificationAction
Source§fn clone(&self) -> NotificationAction
fn clone(&self) -> NotificationAction
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 NotificationAction
impl Debug for NotificationAction
Source§impl Default for NotificationAction
impl Default for NotificationAction
Source§fn default() -> NotificationAction
fn default() -> NotificationAction
Returns the “default value” for a type. Read more
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
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 Freeze for NotificationAction
impl RefUnwindSafe for NotificationAction
impl Send for NotificationAction
impl Sync for NotificationAction
impl Unpin for NotificationAction
impl UnwindSafe for NotificationAction
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