summaryrefslogtreecommitdiff
path: root/src/helix/namespaces/auth.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2019-05-08 15:38:37 +0000
committerDavid Blajda <blajda@hotmail.com>2019-05-08 15:38:37 +0000
commit98fb79b85e3cfbb547e5340b30623511daf09ef5 (patch)
treea03bd7a95c86a92eb7510409429f50433056d7ab /src/helix/namespaces/auth.rs
parent0e09c2c06fc0b81f11d12985a4172c815233db17 (diff)
:WIP: Move types to a different crate
Diffstat (limited to 'src/helix/namespaces/auth.rs')
-rw-r--r--src/helix/namespaces/auth.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/helix/namespaces/auth.rs b/src/helix/namespaces/auth.rs
deleted file mode 100644
index d006e2f..0000000
--- a/src/helix/namespaces/auth.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-use super::*;
-use crate::models::Credentials;
-use crate::namespace::auth;
-
-pub struct Auth {}
-type AuthNamespace = Namespace<Auth>;
-
-impl AuthNamespace {
- pub fn client_credentials(self, secret: &str)
- -> ApiRequest<Credentials> {
- auth::client_credentials(self.client.inner, &secret)
- }
-}
-
-impl Client {
- pub fn auth(&self) -> AuthNamespace {
- AuthNamespace::new(self)
- }
-}