Files
gitks/models/channels/voice_participants.rs
T
2026-06-07 11:30:56 +08:00

22 lines
598 B
Rust

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
/// Real-time voice/video channel participant state.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
pub struct VoiceParticipant {
pub id: Uuid,
pub channel_id: Uuid,
pub user_id: Uuid,
pub session_id: Option<String>,
pub deafened: bool,
pub muted: bool,
pub self_deafened: bool,
pub self_muted: bool,
pub self_video: bool,
pub streaming: bool,
pub speaking: bool,
pub joined_at: DateTime<Utc>,
pub left_at: Option<DateTime<Utc>>,
}