blob: cc5442cc2b7b9e0090459631c0c78e262ee1d99f (
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
|
extern crate serde_json;
use crate::client::PaginationTrait;
use crate::client::Scope;
impl PaginationTrait for Credentials {
fn cursor<'a>(&'a self) -> Option<&'a str> { None }
}
impl PaginationTrait for Message {
fn cursor<'a>(&'a self) -> Option<&'a str> { None }
}
#[derive(Debug, Deserialize)]
pub struct Credentials {
pub access_token: String,
pub refresh_token: Option<String>,
pub expires_in: u32,
pub scope: Option<Vec<Scope>>,
pub token_type: String,
}
#[derive(Debug, Deserialize)]
pub struct Message {
pub error: Option<String>,
pub message: String,
pub status: u32,
}
|