36 lines
681 B
Rust
36 lines
681 B
Rust
mod account;
|
|
mod account_member;
|
|
mod cents;
|
|
mod direction;
|
|
mod recurring_transaction;
|
|
mod schedule;
|
|
mod token;
|
|
mod transaction;
|
|
mod user;
|
|
mod user_app;
|
|
mod user_app_secret;
|
|
|
|
pub use account::*;
|
|
pub use account_member::*;
|
|
pub use cents::*;
|
|
pub use direction::*;
|
|
pub use recurring_transaction::*;
|
|
pub use schedule::*;
|
|
pub use token::*;
|
|
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)]
|
|
Schedule(#[from] ScheduleError),
|
|
|
|
#[error(transparent)]
|
|
UserAppSecret(#[from] UserAppSecretError),
|
|
}
|