1 |
use serde::{Deserialize, Serialize};
|
2 |
|
3 |
use crate::settings::Setting;
|
4 |
|
5 |
#[derive(Debug, Serialize, Deserialize)]
|
6 |
pub struct UserBio(pub String);
|
7 |
|
8 |
impl Setting for UserBio {
|
9 |
fn name() -> &'static str {
|
10 |
"Bio"
|
11 |
}
|
12 |
}
|
13 |
|
14 |
#[derive(Debug, Serialize, Deserialize, Clone)]
|
15 |
pub struct UserDisplayName(pub String);
|
16 |
|
17 |
impl Setting for UserDisplayName {
|
18 |
fn name() -> &'static str {
|
19 |
"Display Name"
|
20 |
}
|
21 |
}
|
22 |
|
23 |
#[derive(Debug, Serialize, Deserialize)]
|
24 |
pub struct UserDisplayImage(pub String);
|
25 |
|
26 |
impl Setting for UserDisplayImage {
|
27 |
fn name() -> &'static str {
|
28 |
"Profile Image"
|
29 |
}
|
30 |
}
|
31 |
|