aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine/src/com_atproto/mod.rs
blob: 7a6cbc01f12659830e3027000f68a5851bb64e95 (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
26
27
28
29
30
31
// com.atproto types (manually entered)

pub mod repo;

#[allow(non_snake_case)]
#[derive(Debug, serde::Deserialize, serde::Serialize, PartialEq, Eq)]
pub struct AccountRequest {
    pub email: String,
    pub handle: String,
    pub did: Option<String>,
    pub inviteCode: Option<String>,
    pub password: String,
    pub recoveryKey: Option<String>,
}

#[allow(non_snake_case)]
#[derive(Debug, serde::Deserialize, serde::Serialize, PartialEq, Eq)]
pub struct SessionRequest {
    pub identifier: String,
    pub password: String,
}

#[allow(non_snake_case)]
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)]
pub struct Session {
    pub did: String,
    pub name: String,
    pub email: Option<String>,
    pub accessJwt: String,
    pub refreshJwt: String,
}