summaryrefslogtreecommitdiff
path: root/src/helix/models.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-18 05:06:05 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-18 05:06:05 +0000
commitd34229bc3e495d2927415f408b18aec51a4574e2 (patch)
tree42f892b93d1459a55b52ccb009ddafd9166e0a8b /src/helix/models.rs
parent21ebcdb53db06557fe73e195742c038ed91ef331 (diff)
Implement auth client and auth barrier
Diffstat (limited to 'src/helix/models.rs')
-rw-r--r--src/helix/models.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/helix/models.rs b/src/helix/models.rs
index e4c58c3..86b7560 100644
--- a/src/helix/models.rs
+++ b/src/helix/models.rs
@@ -80,3 +80,13 @@ pub struct Clip {
pub thumbnail_url: Url,
pub view_count: i32,
}
+
+
+#[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,
+}