From c166a6963d0ed5bd9108b578686be57faa66edbd Mon Sep 17 00:00:00 2001 From: Clay McLeod Date: Sat, 21 Sep 2024 13:04:37 -0500 Subject: [PATCH] revise: renames `service` module to `service_info` --- CHANGELOG.md | 2 ++ src/v1/types/responses.rs | 4 ++-- src/v1/types/responses/{service.rs => service_info.rs} | 0 .../types/responses/{service => service_info}/builder.rs | 8 ++++---- 4 files changed, 8 insertions(+), 6 deletions(-) rename src/v1/types/responses/{service.rs => service_info.rs} (100%) rename src/v1/types/responses/{service => service_info}/builder.rs (96%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b8442d..fa003a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Gates serialization/deserialization behind the `serde` feature. - Makes most structs `Clone`. - Converts `ServiceInfo` to use a builder for construction. +- Changes the `v1::types::responses::service` module to + `v1::types::responses::service_info`. ## 0.2.0 - 08-08-2024 diff --git a/src/v1/types/responses.rs b/src/v1/types/responses.rs index 076da3b..6a1f9d8 100644 --- a/src/v1/types/responses.rs +++ b/src/v1/types/responses.rs @@ -1,9 +1,9 @@ //! Responses from a service. -pub mod service; +pub mod service_info; pub mod task; -pub use service::ServiceInfo; +pub use service_info::ServiceInfo; /// A response from `POST /tasks`. #[derive(Clone, Debug, Default, Eq, PartialEq)] diff --git a/src/v1/types/responses/service.rs b/src/v1/types/responses/service_info.rs similarity index 100% rename from src/v1/types/responses/service.rs rename to src/v1/types/responses/service_info.rs diff --git a/src/v1/types/responses/service/builder.rs b/src/v1/types/responses/service_info/builder.rs similarity index 96% rename from src/v1/types/responses/service/builder.rs rename to src/v1/types/responses/service_info/builder.rs index 9317f89..74f5ac1 100644 --- a/src/v1/types/responses/service/builder.rs +++ b/src/v1/types/responses/service_info/builder.rs @@ -5,10 +5,10 @@ use chrono::Utc; use url::Url; use crate::v1::types::responses::ServiceInfo; -use crate::v1::types::responses::service::Artifact; -use crate::v1::types::responses::service::Organization; -use crate::v1::types::responses::service::ServiceType; -use crate::v1::types::responses::service::TES_VERSION; +use crate::v1::types::responses::service_info::Artifact; +use crate::v1::types::responses::service_info::Organization; +use crate::v1::types::responses::service_info::ServiceType; +use crate::v1::types::responses::service_info::TES_VERSION; /// The default group to use for the service. pub const DEFAULT_GROUP: &str = "org.ga4gh";