pub struct UserNotification {Show 24 fields
pub _id: String,
pub tenant_id: String,
pub user_id: Option<Option<String>>,
pub anon_user_id: Option<Option<String>>,
pub url_id: String,
pub url: String,
pub page_title: Option<Option<String>>,
pub related_object_type: NotificationObjectType,
pub related_object_id: String,
pub viewed: bool,
pub is_unread_message: bool,
pub sent: bool,
pub created_at: String,
pub type: NotificationType,
pub from_comment_id: Option<Option<String>>,
pub from_vote_id: Option<Option<String>>,
pub from_user_name: Option<Option<String>>,
pub from_user_id: Option<Option<String>>,
pub from_user_avatar_src: Option<Option<String>>,
pub opted_out: bool,
pub count: Option<i64>,
pub related_ids: Option<Vec<String>>,
pub from_user_ids: Option<Vec<String>>,
pub from_user_names: Option<Vec<String>>,
}Fields§
§_id: String§tenant_id: String§user_id: Option<Option<String>>§anon_user_id: Option<Option<String>>§url_id: String§url: String§page_title: Option<Option<String>>§viewed: bool§is_unread_message: bool§sent: bool§created_at: String§type: NotificationType§from_comment_id: Option<Option<String>>§from_vote_id: Option<Option<String>>§from_user_name: Option<Option<String>>§from_user_id: Option<Option<String>>§from_user_avatar_src: Option<Option<String>>§opted_out: bool§count: Option<i64>§from_user_ids: Option<Vec<String>>§from_user_names: Option<Vec<String>>Implementations§
Source§impl UserNotification
impl UserNotification
pub fn new( _id: String, tenant_id: String, url_id: String, url: String, related_object_type: NotificationObjectType, related_object_id: String, viewed: bool, is_unread_message: bool, sent: bool, created_at: String, type: NotificationType, opted_out: bool, ) -> UserNotification
Trait Implementations§
Source§impl Clone for UserNotification
impl Clone for UserNotification
Source§fn clone(&self) -> UserNotification
fn clone(&self) -> UserNotification
Returns a duplicate 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 UserNotification
impl Debug for UserNotification
Source§impl Default for UserNotification
impl Default for UserNotification
Source§fn default() -> UserNotification
fn default() -> UserNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserNotification
impl<'de> Deserialize<'de> for UserNotification
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 PartialEq for UserNotification
impl PartialEq for UserNotification
Source§impl Serialize for UserNotification
impl Serialize for UserNotification
impl StructuralPartialEq for UserNotification
Auto Trait Implementations§
impl Freeze for UserNotification
impl RefUnwindSafe for UserNotification
impl Send for UserNotification
impl Sync for UserNotification
impl Unpin for UserNotification
impl UnwindSafe for UserNotification
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