eventlib/dto/
meeting_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use chrono::naive::serde::ts_milliseconds;
use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use common::utils::serialize_option_naive_date;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct MeetingRequest {
    pub id: Option<Uuid>,
    #[serde(with = "ts_milliseconds")]
    pub date: NaiveDateTime,
    pub author: Uuid,
    pub participants: Vec<Uuid>,
    pub room: Option<Uuid>,
    pub title: Option<String>,
    pub comment: Option<String>,
    #[serde(rename = "type")]
    pub meeting_type: Option<String>,
    #[serde(default)]
    #[serde(with = "serialize_option_naive_date")]
    pub date_to : Option<NaiveDateTime>,
    pub send_invitation: bool,
    pub chat: Option<Uuid>,
    pub url: Option<String>,
}