From 96715ceb58b24ee7220d98e421701daa550f44db Mon Sep 17 00:00:00 2001 From: David Blajda Date: Sun, 3 Feb 2019 22:30:15 +0000 Subject: Add Helix and Kraken scopes. Client Config and allow injecting of responses --- src/models.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/models.rs') 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, pub expires_in: u32, - pub scope: Option>, + pub scope: Option>, pub token_type: String, } + +#[derive(Debug, Deserialize)] +pub struct Message { + pub error: Option, + pub message: String, + pub status: u32, +} \ No newline at end of file -- cgit v1.2.3