forked from jmug/stoatchat
chore(monorepo): delta, january, quark
This commit is contained in:
64
crates/quark/src/traits/mod.rs
Normal file
64
crates/quark/src/traits/mod.rs
Normal file
@@ -0,0 +1,64 @@
|
||||
mod admin {
|
||||
pub mod migrations;
|
||||
}
|
||||
|
||||
mod autumn {
|
||||
pub mod attachment;
|
||||
}
|
||||
|
||||
mod channels {
|
||||
pub mod channel;
|
||||
pub mod channel_invite;
|
||||
pub mod channel_unread;
|
||||
pub mod message;
|
||||
}
|
||||
|
||||
mod servers {
|
||||
pub mod server;
|
||||
pub mod server_ban;
|
||||
pub mod server_member;
|
||||
}
|
||||
|
||||
mod users {
|
||||
pub mod bot;
|
||||
pub mod user;
|
||||
pub mod user_settings;
|
||||
}
|
||||
|
||||
pub use admin::migrations::AbstractMigrations;
|
||||
|
||||
pub use autumn::attachment::AbstractAttachment;
|
||||
|
||||
pub use channels::channel::AbstractChannel;
|
||||
pub use channels::channel_invite::AbstractChannelInvite;
|
||||
pub use channels::channel_unread::AbstractChannelUnread;
|
||||
pub use channels::message::AbstractMessage;
|
||||
|
||||
pub use servers::server::AbstractServer;
|
||||
pub use servers::server_ban::AbstractServerBan;
|
||||
pub use servers::server_member::AbstractServerMember;
|
||||
|
||||
pub use users::bot::AbstractBot;
|
||||
pub use users::user::AbstractUser;
|
||||
pub use users::user_settings::AbstractUserSettings;
|
||||
|
||||
// pub trait AbstractEventEmitter {}
|
||||
// + AbstractEventEmitter
|
||||
|
||||
pub trait AbstractDatabase:
|
||||
Sync
|
||||
+ Send
|
||||
+ AbstractMigrations
|
||||
+ AbstractAttachment
|
||||
+ AbstractChannel
|
||||
+ AbstractChannelInvite
|
||||
+ AbstractChannelUnread
|
||||
+ AbstractMessage
|
||||
+ AbstractServer
|
||||
+ AbstractServerBan
|
||||
+ AbstractServerMember
|
||||
+ AbstractBot
|
||||
+ AbstractUser
|
||||
+ AbstractUserSettings
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user