Add a route to get the list of inbox entries

This commit is contained in:
2025-05-08 16:34:00 +02:00
parent b6281be349
commit df7f395e8b
4 changed files with 34 additions and 5 deletions

View File

@ -9,7 +9,7 @@ pub struct InboxID(pub i32);
/// Single inbox entry information
#[derive(Queryable, Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct Inbox {
pub struct InboxEntry {
/// The ID of the inbox entry
id: i32,
/// ID of the file attached to this inbox entry
@ -30,7 +30,7 @@ pub struct Inbox {
pub time_update: i64,
}
impl Inbox {
impl InboxEntry {
/// Get the ID of the inbox entry
pub fn id(&self) -> InboxID {
InboxID(self.id)