competitionlib/dto/
registration_team_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

use crate::dto::participant_request::ParticipantRequest;
use crate::dto::competition_participant_request::CompetitionParticipantRequest;
use crate::dto::game_participant_request::GameParticipantRequest;
use crate::dto::division_participant_request::DivisionParticipantRequest;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct RegistrationTeamRequest {
    pub participant: ParticipantRequest,
    pub game_participant: Option<GameParticipantRequest>,
    pub competition_participant: Option<CompetitionParticipantRequest>,
    pub division_participant: Option<DivisionParticipantRequest>,
}