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