You've already forked AstralRinth
forked from didirus/AstralRinth
* untested, unformatted, un-refactored * minor simplification * simplification fix * refactoring, changes * some fixes * fixes, refactoring * missed cache * revs * revs - more! * removed donation links; added all org members to route * renamed slug to title --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
43 lines
1.1 KiB
Rust
43 lines
1.1 KiB
Rust
use thiserror::Error;
|
|
|
|
pub mod categories;
|
|
pub mod collection_item;
|
|
pub mod flow_item;
|
|
pub mod ids;
|
|
pub mod image_item;
|
|
pub mod notification_item;
|
|
pub mod organization_item;
|
|
pub mod pat_item;
|
|
pub mod project_item;
|
|
pub mod report_item;
|
|
pub mod session_item;
|
|
pub mod team_item;
|
|
pub mod thread_item;
|
|
pub mod user_item;
|
|
pub mod version_item;
|
|
|
|
pub use collection_item::Collection;
|
|
pub use ids::*;
|
|
pub use image_item::Image;
|
|
pub use organization_item::Organization;
|
|
pub use project_item::Project;
|
|
pub use team_item::Team;
|
|
pub use team_item::TeamMember;
|
|
pub use thread_item::{Thread, ThreadMessage};
|
|
pub use user_item::User;
|
|
pub use version_item::Version;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum DatabaseError {
|
|
#[error("Error while interacting with the database: {0}")]
|
|
Database(#[from] sqlx::Error),
|
|
#[error("Error while trying to generate random ID")]
|
|
RandomId,
|
|
#[error("Error while interacting with the cache: {0}")]
|
|
CacheError(#[from] redis::RedisError),
|
|
#[error("Redis Pool Error: {0}")]
|
|
RedisPool(#[from] deadpool_redis::PoolError),
|
|
#[error("Error while serializing with the cache: {0}")]
|
|
SerdeCacheError(#[from] serde_json::Error),
|
|
}
|