Add a route to get the list of inbox entries
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user