aboutsummaryrefslogtreecommitdiff
path: root/common/src/user.rs
blob: 636046f361899e3b72594cc5964e978ce33a61b4 (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
/*
    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) 2026 metamuffin <metamuffin.org>
*/

use jellyobject::{Tag, enums, fields};

fields! {
    USER_LOGIN: &str = b"Ulgn";
    USER_PASSWORD: &[u8] = b"Upwd";
    USER_PASSWORD_REQUIRE_CHANGE: () = b"Upwc";
    USER_NAME: &str = b"Unam";
    USER_ADMIN: () = b"Uadm";
    USER_THEME_PRESET: Tag = b"Utpr";
    USER_THEME_ACCENT: u32 = b"Utac";

    UDATA_WATCHED: () = b"Dwat";
    UDATA_RATING: f64 = b"Drat";
}
enums! {
    THEME_DARK = b"dark";
    THEME_LIGHT = b"ligh";
}