-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Rename files & structs to reflect the domain is the profile
Refs: #1
- Loading branch information
Showing
8 changed files
with
62 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod api; | ||
pub mod api; | ||
pub mod spi; | ||
pub mod domain; | ||
pub mod error; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
use crate::profile::core::domain::{ConfigProfiles}; | ||
use crate::profile::core::error::ConfigProfilesError; | ||
use crate::profile::core::domain::{ProfileSet}; | ||
use crate::profile::core::error::ProfileError; | ||
|
||
pub trait ConfigProfilesAPI { | ||
fn get_config_profiles() -> Result<ConfigProfiles, ConfigProfilesError>; | ||
pub trait ProfileAPI { | ||
fn get_profiles(&self) -> Result<ProfileSet, ProfileError>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
use async_trait::async_trait; | ||
use crate::profile::core::domain::{ConfigProfiles}; | ||
use crate::profile::core::error::ConfigProfilesError; | ||
use crate::profile::core::domain::{ProfileSet}; | ||
use crate::profile::core::error::ProfileError; | ||
use error_stack::{Result}; | ||
|
||
#[async_trait] | ||
pub trait ConfigProfilesSPI { | ||
async fn load_config_profiles(&self) -> Result<ConfigProfiles, ConfigProfilesError>; | ||
pub trait ProfileDataSPI { | ||
async fn load_profile_data(&self) -> Result<ProfileSet, ProfileError>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pub mod configuration_adapter; | ||
pub mod profile_file_adapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters