pub struct NotificationAction {
pub label: String,
pub link: String,
pub method: String,
pub is_primary: bool,
}Expand description
An interactive action button or link attached to a Nextcloud notification.
Actions represent follow-up operations a user can trigger directly from the notification (such as accepting or declining a shared file).
See the official Nextcloud Notifications API v2 Action Element documentation.
Fields§
§label: StringTranslated short label of the action or button presented to the user.
link: StringTarget URL link to execute or navigate to when the action is triggered.
method: StringHTTP method used for the action request ("GET", "POST", "DELETE", "PUT"),
or "WEB" for redirecting the browser.
is_primary: boolWhether this action is marked as the primary (default) action.
Implementations§
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 Freeze 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> 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