From ad2242d27078e8c767fd1912d91263b1e274d03e Mon Sep 17 00:00:00 2001 From: Damien Murphy Date: Mon, 22 Jul 2024 17:41:49 -0700 Subject: [PATCH] Change order of pub and use --- src/manage/invitations.rs | 4 ++-- src/manage/keys.rs | 6 +++--- src/manage/members.rs | 4 ++-- src/manage/projects.rs | 6 +++--- src/manage/scopes.rs | 4 ++-- src/manage/usage.rs | 8 ++++---- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/manage/invitations.rs b/src/manage/invitations.rs index bcebb4f0..03e45b6b 100644 --- a/src/manage/invitations.rs +++ b/src/manage/invitations.rs @@ -4,12 +4,12 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#invitations -pub mod response; - use crate::{send_and_translate_response, Deepgram}; use response::Message; +pub mod response; + /// Manage the invitations to a Deepgram Project. /// /// Constructed using [`Deepgram::invitations`]. diff --git a/src/manage/keys.rs b/src/manage/keys.rs index 59553fd5..5b8fcfda 100644 --- a/src/manage/keys.rs +++ b/src/manage/keys.rs @@ -4,9 +4,6 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#keys -pub mod options; -pub mod response; - use crate::{ manage::keys::{ options::{Options, SerializableOptions}, @@ -17,6 +14,9 @@ use crate::{ use response::Message; +pub mod options; +pub mod response; + /// Manage the keys for a Deepgram Project. /// /// Constructed using [`Deepgram::keys`]. diff --git a/src/manage/members.rs b/src/manage/members.rs index 05318adc..b5e02b1e 100644 --- a/src/manage/members.rs +++ b/src/manage/members.rs @@ -4,12 +4,12 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#members -pub mod response; - use crate::{send_and_translate_response, Deepgram}; use response::Message; +pub mod response; + /// Manage the members of a Deepgram Project. /// /// Constructed using [`Deepgram::members`]. diff --git a/src/manage/projects.rs b/src/manage/projects.rs index ec5eaa66..e6fd2acb 100644 --- a/src/manage/projects.rs +++ b/src/manage/projects.rs @@ -4,15 +4,15 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#projects -pub mod options; -pub mod response; - use crate::{send_and_translate_response, Deepgram}; use options::{Options, SerializableOptions}; use response::{Message, Project}; +pub mod options; +pub mod response; + /// Manage Deepgram Projects. /// /// Constructed using [`Deepgram::projects`]. diff --git a/src/manage/scopes.rs b/src/manage/scopes.rs index 7afd78ca..2ee86604 100644 --- a/src/manage/scopes.rs +++ b/src/manage/scopes.rs @@ -4,14 +4,14 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#scopes -pub mod response; - use serde::Serialize; use crate::{send_and_translate_response, Deepgram}; use response::Message; +pub mod response; + /// Manage the permissions of a Deepgram Project. /// /// Constructed using [`Deepgram::scopes`]. diff --git a/src/manage/usage.rs b/src/manage/usage.rs index 88b0163a..8b5d110c 100644 --- a/src/manage/usage.rs +++ b/src/manage/usage.rs @@ -4,15 +4,15 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#usage +use response::{Fields, Request, Requests, UsageSummary}; + +use crate::{send_and_translate_response, Deepgram}; + pub mod get_fields_options; pub mod get_usage_options; pub mod list_requests_options; pub mod response; -use response::{Fields, Request, Requests, UsageSummary}; - -use crate::{send_and_translate_response, Deepgram}; - /// Get the usage data of a Deepgram Project. /// /// Constructed using [`Deepgram::usage`].