1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-02-18 15:02:41 +00:00
comunicapiv3/src/api_data/res_number_unread_notifications.rs

16 lines
326 B
Rust

//! # Number of unread notifications
//!
//! @author Pierre Hubert
use serde::Serialize;
#[derive(Serialize)]
pub struct ResNumberUnreadNotifications {
number: u64
}
impl ResNumberUnreadNotifications {
pub fn new(number: u64) -> ResNumberUnreadNotifications {
ResNumberUnreadNotifications { number }
}
}