pub trait NotificationReader: Send + Sync {
// Required methods
fn list_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
before_id: Option<i64>,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<NotificationRecord>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn count_unread_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Read-only notification queries.
Required Methods§
Sourcefn list_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
before_id: Option<i64>,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<NotificationRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_notifications<'life0, 'life1, 'async_trait>(
&'life0 self,
wallet: &'life1 str,
before_id: Option<i64>,
limit: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<NotificationRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List notifications for a wallet, ordered by id descending.
If before_id is set, only return notifications with id < before_id.