blob: 2a7908f00c699eb2f265284e699e01d738985d63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2023 metamuffin <metamuffin.org>
*/
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use crate::database::User;
pub mod guard;
pub mod token;
pub struct Session {
pub user: User,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SessionData {
username: String,
expire: DateTime<Utc>,
}
|