diff options
author | David Blajda <blajda@hotmail.com> | 2019-02-03 22:30:15 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2019-02-03 22:30:15 +0000 |
commit | 96715ceb58b24ee7220d98e421701daa550f44db (patch) | |
tree | 2d00984339efab0549fa07079be623b2a7b634f8 /src/models.rs | |
parent | 0a5892c67fb02e09a621ac8796ac84232935f5c3 (diff) |
Add Helix and Kraken scopes. Client Config and allow injecting of responses
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 |