nextcloud_notifications/lib.rs
1//! Nextcloud Notifications API (v2) client and domain models.
2//!
3//! Nextcloud provides an OCS API for listing, retrieving, and dismissing
4//! user notifications beneath `/ocs/v2.php/apps/notifications/api/v2/notifications`.
5//!
6//! - [`NotificationClient`] — asynchronous client for fetching and deleting notifications.
7//! - [`Notification`] — a Nextcloud notification item.
8//! - [`NotificationAction`] — an interactive action button or link attached to a notification.
9//!
10//! See the official [Nextcloud Notifications API v2 documentation](https://github.com/nextcloud/notifications/blob/master/docs/ocs-endpoint-v2.md)
11//! and [Nextcloud Developer Manual OCS Overview](https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#notifications).
12#![deny(missing_docs)]
13#![forbid(unsafe_code)]
14
15mod action;
16mod client;
17mod notification;
18mod wire;
19
20pub use action::NotificationAction;
21pub use client::{NOTIFICATIONS_API_PATH, NotificationClient};
22pub use notification::Notification;