pub trait QueryNotifications {
// Required methods
fn notification_record(&self) -> Result<StoredNotification, StorageError>;
fn save_notification_record(
&self,
record: &StoredNotification,
) -> Result<(), StorageError>;
fn disable_notifications(
&self,
) -> Result<(StoredNotification, Vec<UploadedTopic>), StorageError>;
fn uploaded_topics(&self) -> Result<Vec<UploadedTopic>, StorageError>;
fn confirm_uploaded_topics(
&self,
adds: &[UploadedTopic],
removes: &[Vec<u8>],
) -> Result<(), StorageError>;
fn clear_uploaded_topics(&self) -> Result<(), StorageError>;
fn mark_uploaded_topics_stale(&self) -> Result<(), StorageError>;
fn notification_groups(&self) -> Result<Vec<StoredGroup>, StorageError>;
fn set_notification_override(
&self,
group: &GroupId,
value: Option<i32>,
) -> Result<(), StorageError>;
}Required Methods§
fn notification_record(&self) -> Result<StoredNotification, StorageError>
fn save_notification_record( &self, record: &StoredNotification, ) -> Result<(), StorageError>
Sourcefn disable_notifications(
&self,
) -> Result<(StoredNotification, Vec<UploadedTopic>), StorageError>
fn disable_notifications( &self, ) -> Result<(StoredNotification, Vec<UploadedTopic>), StorageError>
Atomically disable notifications and return the cleared uploads. Keep the recipient identity, conversation overrides, and task retry state.