Struct ic_canister_kit::stable::notifiable::Notifications
source · pub struct Notifications {
pub next_id: u64,
pub notifications: Vec<Notification>,
}Fields§
§next_id: u64§notifications: Vec<Notification>Trait Implementations§
source§impl CandidType for Notifications
impl CandidType for Notifications
source§impl Clone for Notifications
impl Clone for Notifications
source§fn clone(&self) -> Notifications
fn clone(&self) -> Notifications
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Notifications
impl Debug for Notifications
source§impl Default for Notifications
impl Default for Notifications
source§fn default() -> Notifications
fn default() -> Notifications
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Notifications
impl<'de> Deserialize<'de> for Notifications
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
source§impl Notifiable for Notifications
impl Notifiable for Notifications
fn notification_find_all( &self, search: &Option<NotificationSearch> ) -> Vec<&Notification>
fn notification_find_by_page( &self, search: &Option<NotificationSearch>, page: &Page, max: u32 ) -> PageData<&Notification>
fn notification_push( &mut self, caller: CallerId, action: NotificationAction, title: String, content: String ) -> u64
fn notification_read(&mut self, notification_id: u64)
fn notification_remove(&mut self, notification_id: u64) -> Option<Notification>
Auto Trait Implementations§
impl RefUnwindSafe for Notifications
impl Send for Notifications
impl Sync for Notifications
impl Unpin for Notifications
impl UnwindSafe for Notifications
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