fix(leptos): wire format corrections from whole-branch review
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user