From d7a851a1690d8d37d1e6374be4a025c2d6e0cc33 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 8 Jan 2025 13:31:03 +0100 Subject: [PATCH] rust: Reorder methods --- rust/src/api/authentication.rs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/rust/src/api/authentication.rs b/rust/src/api/authentication.rs index 31b5656c8..633bc5d9f 100644 --- a/rust/src/api/authentication.rs +++ b/rust/src/api/authentication.rs @@ -10,23 +10,6 @@ impl<'a> Authentication<'a> { Self { cfg } } - pub async fn dashboard_access( - &self, - app_id: String, - options: Option, - ) -> Result { - let PostOptions { idempotency_key } = options.unwrap_or_default(); - - crate::request::Request::new( - http1::Method::POST, - "/api/v1/auth/dashboard-access/{app_id}", - ) - .with_path_param("app_id", app_id) - .with_optional_header_param("idempotency-key", idempotency_key) - .execute(self.cfg) - .await - } - /// Use this function to get magic links (and authentication codes) for /// connecting your users to the Consumer Application Portal. pub async fn app_portal_access( @@ -66,6 +49,23 @@ impl<'a> Authentication<'a> { .await } + pub async fn dashboard_access( + &self, + app_id: String, + options: Option, + ) -> Result { + let PostOptions { idempotency_key } = options.unwrap_or_default(); + + crate::request::Request::new( + http1::Method::POST, + "/api/v1/auth/dashboard-access/{app_id}", + ) + .with_path_param("app_id", app_id) + .with_optional_header_param("idempotency-key", idempotency_key) + .execute(self.cfg) + .await + } + /// Logout an app token. /// /// Trying to log out other tokens will fail.