1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-02-22 16:51:17 +00:00
comunicapiv3/src/api_data/res_number_unread_notifications.rs

16 lines
326 B
Rust
Raw Normal View History

//! # 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 }
}
}