revolt-database 0.14.1

Revolt Backend: Database Implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use revolt_result::Result;

use crate::AccountInvite;

#[cfg(feature = "mongodb")]
mod mongodb;
mod reference;

#[async_trait]
pub trait AbstractAccountInvites: Sync + Send {
    /// Find invite by id
    async fn fetch_account_invite(&self, id: &str) -> Result<AccountInvite>;

    /// Save invite
    async fn save_account_invite(&self, invite: &AccountInvite) -> Result<()>;
}