43 lines
831 B
Rust
43 lines
831 B
Rust
mod access_token;
|
|
mod account;
|
|
mod account_member;
|
|
mod cents;
|
|
mod direction;
|
|
mod recurring_transaction;
|
|
mod refresh_token;
|
|
mod schedule;
|
|
mod secret;
|
|
mod transaction;
|
|
mod user;
|
|
mod user_app;
|
|
mod user_app_secret;
|
|
|
|
pub use access_token::*;
|
|
pub use account::*;
|
|
pub use account_member::*;
|
|
pub use cents::*;
|
|
pub use direction::*;
|
|
pub use recurring_transaction::*;
|
|
pub use refresh_token::*;
|
|
pub use schedule::*;
|
|
pub use secret::*;
|
|
pub use transaction::*;
|
|
pub use user::*;
|
|
pub use user_app::*;
|
|
pub use user_app_secret::*;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum DomainError {
|
|
#[error(transparent)]
|
|
Amount(#[from] CentsError),
|
|
|
|
#[error(transparent)]
|
|
Secret(#[from] SecretError),
|
|
|
|
#[error(transparent)]
|
|
Schedule(#[from] ScheduleError),
|
|
|
|
#[error(transparent)]
|
|
UserAppSecret(#[from] UserAppSecretError),
|
|
}
|