diff --git a/src/manage/billing/mod_billing.rs b/src/manage/billing.rs similarity index 99% rename from src/manage/billing/mod_billing.rs rename to src/manage/billing.rs index 979532b3..53ae7906 100644 --- a/src/manage/billing/mod_billing.rs +++ b/src/manage/billing.rs @@ -4,6 +4,8 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#billing +pub mod response; + use crate::{ manage::billing::response::{Balance, Balances}, send_and_translate_response, Deepgram, diff --git a/src/manage/billing/mod.rs b/src/manage/billing/mod.rs deleted file mode 100644 index 0046bf99..00000000 --- a/src/manage/billing/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -//! Billing module - -pub mod mod_billing; -pub mod response; diff --git a/src/manage/invitations/mod_invitations.rs b/src/manage/invitations.rs similarity index 98% rename from src/manage/invitations/mod_invitations.rs rename to src/manage/invitations.rs index 510df5c5..bcebb4f0 100644 --- a/src/manage/invitations/mod_invitations.rs +++ b/src/manage/invitations.rs @@ -4,9 +4,11 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#invitations +pub mod response; + use crate::{send_and_translate_response, Deepgram}; -use super::response::Message; +use response::Message; /// Manage the invitations to a Deepgram Project. /// diff --git a/src/manage/invitations/mod.rs b/src/manage/invitations/mod.rs deleted file mode 100644 index 2417b461..00000000 --- a/src/manage/invitations/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -//! Invitations module - -pub mod mod_invitations; -pub mod response; diff --git a/src/manage/keys/mod_keys.rs b/src/manage/keys.rs similarity index 99% rename from src/manage/keys/mod_keys.rs rename to src/manage/keys.rs index b1d2790b..59553fd5 100644 --- a/src/manage/keys/mod_keys.rs +++ b/src/manage/keys.rs @@ -4,6 +4,9 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#keys +pub mod options; +pub mod response; + use crate::{ manage::keys::{ options::{Options, SerializableOptions}, @@ -12,7 +15,7 @@ use crate::{ send_and_translate_response, Deepgram, }; -use super::response::Message; +use response::Message; /// Manage the keys for a Deepgram Project. /// diff --git a/src/manage/keys/mod.rs b/src/manage/keys/mod.rs deleted file mode 100644 index d1fab436..00000000 --- a/src/manage/keys/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -//! Keys module - -pub mod mod_keys; -pub mod options; -pub mod response; diff --git a/src/manage/members/mod_members.rs b/src/manage/members.rs similarity index 98% rename from src/manage/members/mod_members.rs rename to src/manage/members.rs index 78a900c3..05318adc 100644 --- a/src/manage/members/mod_members.rs +++ b/src/manage/members.rs @@ -4,11 +4,11 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#members -use crate::{send_and_translate_response, Deepgram}; +pub mod response; -use crate::manage::members::response; +use crate::{send_and_translate_response, Deepgram}; -use super::response::Message; +use response::Message; /// Manage the members of a Deepgram Project. /// diff --git a/src/manage/members/mod.rs b/src/manage/members/mod.rs deleted file mode 100644 index 3e10de87..00000000 --- a/src/manage/members/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -//! Members module - -pub mod mod_members; -pub mod response; diff --git a/src/manage/projects/mod_projects.rs b/src/manage/projects.rs similarity index 97% rename from src/manage/projects/mod_projects.rs rename to src/manage/projects.rs index fac14a0f..ec5eaa66 100644 --- a/src/manage/projects/mod_projects.rs +++ b/src/manage/projects.rs @@ -4,12 +4,14 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#projects +pub mod options; +pub mod response; + use crate::{send_and_translate_response, Deepgram}; -use crate::manage::projects::options::{Options, SerializableOptions}; -use crate::manage::projects::response::{self, Project}; +use options::{Options, SerializableOptions}; -use super::response::Message; +use response::{Message, Project}; /// Manage Deepgram Projects. /// diff --git a/src/manage/projects/mod.rs b/src/manage/projects/mod.rs deleted file mode 100644 index 8a86bb3f..00000000 --- a/src/manage/projects/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -//! Projects module - -pub mod mod_projects; -pub mod options; -pub mod response; diff --git a/src/manage/scopes/mod_scopes.rs b/src/manage/scopes.rs similarity index 98% rename from src/manage/scopes/mod_scopes.rs rename to src/manage/scopes.rs index 229a7599..7afd78ca 100644 --- a/src/manage/scopes/mod_scopes.rs +++ b/src/manage/scopes.rs @@ -4,13 +4,13 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#scopes +pub mod response; + use serde::Serialize; use crate::{send_and_translate_response, Deepgram}; -use crate::manage::scopes::response; - -use super::response::Message; +use response::Message; /// Manage the permissions of a Deepgram Project. /// diff --git a/src/manage/scopes/mod.rs b/src/manage/scopes/mod.rs deleted file mode 100644 index 6bc93d29..00000000 --- a/src/manage/scopes/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -//! Scopes module - -pub mod mod_scopes; -pub mod response; diff --git a/src/manage/usage/mod_usage.rs b/src/manage/usage.rs similarity index 97% rename from src/manage/usage/mod_usage.rs rename to src/manage/usage.rs index f496e11a..88b0163a 100644 --- a/src/manage/usage/mod_usage.rs +++ b/src/manage/usage.rs @@ -4,13 +4,14 @@ //! //! [api]: https://developers.deepgram.com/api-reference/#usage -use crate::{ - manage::usage::{ - get_fields_options, get_usage_options, list_requests_options, - response::{Fields, Request, Requests, UsageSummary}, - }, - 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. /// diff --git a/src/manage/usage/mod.rs b/src/manage/usage/mod.rs deleted file mode 100644 index 8c049bb0..00000000 --- a/src/manage/usage/mod.rs +++ /dev/null @@ -1,7 +0,0 @@ -//! Scopes module - -pub mod get_fields_options; -pub mod get_usage_options; -pub mod list_requests_options; -pub mod mod_usage; -pub mod response;