From cb1b144e48ee357a76f551433d4886f092d259c8 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Thu, 27 Dec 2018 04:46:10 +0000 Subject: Use a generic client for both helix and kraken --- src/models.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/models.rs (limited to 'src/models.rs') diff --git a/src/models.rs b/src/models.rs new file mode 100644 index 0000000..f68e60f --- /dev/null +++ b/src/models.rs @@ -0,0 +1,16 @@ +extern crate serde_json; + +use crate::client::PaginationTrait; + +impl PaginationTrait for Credentials { + 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 token_type: String, +} -- cgit v1.2.3