diff options
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs index f68e60f..cc5442c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,16 +1,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<String>>, + 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, +}
\ No newline at end of file |