forked from didirus/AstralRinth
* Inital creation stuff * File Reader * Upload bodies * Major rework: * Finish Multiple Files * Proper Error Handling * Switch to database models * Run formatter * Make dependencies dependent on Versions over mods * Fixes * Fix clippy * Run lint one last time * Update src/models/mods.rs Co-authored-by: AppleTheGolden <scotsbox@protonmail.com> Co-authored-by: AppleTheGolden <scotsbox@protonmail.com>
21 lines
490 B
Rust
21 lines
490 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
/// A team of users who control a mod
|
|
#[derive(Serialize, Deserialize)]
|
|
pub struct Team {
|
|
/// The id of the team
|
|
pub id: i32,
|
|
/// A list of the members of the team
|
|
pub members: Vec<TeamMember>,
|
|
}
|
|
|
|
/// A member of a team
|
|
#[derive(Serialize, Deserialize, Clone)]
|
|
pub struct TeamMember {
|
|
/// The ID of the user associated with the member
|
|
pub user_id: i32,
|
|
/// The name of the user
|
|
pub name: String,
|
|
pub role: String,
|
|
}
|