revolt_database/models/account_invites/ops.rs
1use revolt_result::Result;
2
3use crate::AccountInvite;
4
5#[cfg(feature = "mongodb")]
6mod mongodb;
7mod reference;
8
9#[async_trait]
10pub trait AbstractAccountInvites: Sync + Send {
11 /// Find invite by id
12 async fn fetch_account_invite(&self, id: &str) -> Result<AccountInvite>;
13
14 /// Save invite
15 async fn save_account_invite(&self, invite: &AccountInvite) -> Result<()>;
16}