aboutsummaryrefslogtreecommitdiff
path: root/server/src/helper/mod.rs
blob: 4b0644cf4ed37385e86a6410591d309c30af48bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
    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) 2025 metamuffin <metamuffin.org>
*/
pub mod accept;
pub mod cache;
pub mod cors;
pub mod filter_sort;
pub mod language;
pub mod node_id;
pub mod session;

use accept::Accept;
use jellylogic::session::Session;
use jellyui::locale::Language;

#[derive(Debug, Clone, Copy, Default)]
pub struct A<T>(pub T);

pub struct RequestInfo {
    pub lang: Language,
    pub accept: Accept,
    pub session: Session,
}