summaryrefslogtreecommitdiff
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs16
1 files changed, 16 insertions, 0 deletions
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<String>,
+ pub expires_in: u32,
+ pub scope: Option<Vec<String>>,
+ pub token_type: String,
+}