Skip to main content

NotificationBehavior

Trait NotificationBehavior 

Source
pub trait NotificationBehavior {
    // Required method
    fn get_notification_summary(
        &self,
    ) -> impl Future<Output = Result<NotificationSummaryDTO, Error>> + Send;
}
Expand description

通知接口,来自文档的「通知」章节 (https://pickcat-docs.xiaole6324.fun/notification.html)。

文档只记录了未读汇总接口;通知列表 / 已读接口尚未公开。

Required Methods§

Source

fn get_notification_summary( &self, ) -> impl Future<Output = Result<NotificationSummaryDTO, Error>> + Send

GET /api/v1/notification-summary —— 需要会话,首页轮询用。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§