fix(leptos): wire format corrections from whole-branch review

This commit is contained in:
asepharyana
2026-07-03 18:43:25 +07:00
parent bf36bf55fe
commit 1b970a4c51
8 changed files with 79 additions and 31 deletions
@@ -20,6 +20,7 @@ pub struct Channel {
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GuildVoiceEntry {
pub guild_id: String,
pub channel_id: String,
@@ -32,5 +32,6 @@ pub struct VoiceRecordingListResponse {
pub items: Vec<VoiceRecording>,
#[serde(rename = "nextCursor")]
pub next_cursor: Option<String>,
#[serde(rename = "hasMore")]
pub has_more: bool,
}
@@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
use crate::guild::GuildVoiceEntry;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VoiceStatus {
pub connected: bool,
#[serde(skip_serializing_if = "Option::is_none")]
@@ -19,6 +20,7 @@ pub struct ActiveSpeaker {
pub id: Option<String>,
pub user_id: String,
pub username: String,
pub avatar: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub avatar: Option<String>,
pub speaking: bool,
}