mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
44 lines
949 B
Rust
44 lines
949 B
Rust
// use serde::{Deserialize, Serialize};
|
|
|
|
/*#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct MemberCompositeKey {
|
|
pub guild: String,
|
|
pub user: String,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Member {
|
|
#[serde(rename = "_id")]
|
|
pub id: MemberCompositeKey,
|
|
pub nickname: Option<String>,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Invite {
|
|
pub code: String,
|
|
pub creator: String,
|
|
pub channel: String,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Ban {
|
|
pub id: String,
|
|
pub reason: String,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Guild {
|
|
#[serde(rename = "_id")]
|
|
pub id: String,
|
|
// pub nonce: String, used internally
|
|
pub name: String,
|
|
pub description: String,
|
|
pub owner: String,
|
|
|
|
pub channels: Vec<String>,
|
|
pub invites: Vec<Invite>,
|
|
pub bans: Vec<Ban>,
|
|
|
|
pub default_permissions: u32,
|
|
}*/
|