pub struct NotificationSummaryDTO {
pub unread_count: u64,
pub unread_count_by_type: BTreeMap<String, u64>,
}Expand description
GET /api/v1/notification-summary 的未读汇总。
unread_count_by_type 用 map 承载,避免写死类型枚举;已知 key:
REPLY_CREATED / MANAGEMENT_ACTION / POST_LIKED / TOPIC_EVENT /
USER_FOLLOWED / LEVEL_CERTIFICATION。
Fields§
§unread_count: u64§unread_count_by_type: BTreeMap<String, u64>Trait Implementations§
Source§impl Clone for NotificationSummaryDTO
impl Clone for NotificationSummaryDTO
Source§impl Debug for NotificationSummaryDTO
impl Debug for NotificationSummaryDTO
Source§impl<'de> Deserialize<'de> for NotificationSummaryDTO
impl<'de> Deserialize<'de> for NotificationSummaryDTO
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
Auto Trait Implementations§
impl Freeze for NotificationSummaryDTO
impl RefUnwindSafe for NotificationSummaryDTO
impl Send for NotificationSummaryDTO
impl Sync for NotificationSummaryDTO
impl Unpin for NotificationSummaryDTO
impl UnsafeUnpin for NotificationSummaryDTO
impl UnwindSafe for NotificationSummaryDTO
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