mayhem_db/util/complete_server.rs
1use crate::models::server::channel::Model as Channel;
2use serde::{Deserialize, Serialize};
3
4use super::{CompleteMember, CompleteRole};
5
6#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7pub struct CompleteServer {
8 pub id: i32,
9 pub name: String,
10 pub roles: Vec<CompleteRole>,
11 pub members: Vec<CompleteMember>,
12 pub channels: Vec<Channel>,
13}