summaryrefslogtreecommitdiff
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/models.rs b/src/models.rs
deleted file mode 100644
index cc5442c..0000000
--- a/src/models.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-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<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