opentalk-roomserver-types-timer 0.0.12

OpenTalk RoomServer Types Timer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-FileCopyrightText: OpenTalk GmbH <mail@opentalk.eu>
//
// SPDX-License-Identifier: EUPL-1.2

use serde::{Deserialize, Serialize};

use crate::event::stop_kind::StopKind;

/// The current timer has been stopped
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct Stopped {
    /// The stop kind
    #[serde(flatten)]
    pub kind: StopKind,
    /// An optional reason to all participants. Set by moderator
    #[serde(skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
}