From f8655c22bc3df749194f54ad5146a31c8959c472 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 29 May 2023 18:34:08 +0200 Subject: [PATCH] Make all attributes pub --- src/types/schema/channel.rs | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/types/schema/channel.rs b/src/types/schema/channel.rs index 6cc16ab..67d9823 100644 --- a/src/types/schema/channel.rs +++ b/src/types/schema/channel.rs @@ -29,22 +29,21 @@ pub struct ChannelCreateSchema { #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "snake_case")] pub struct ChannelModifySchema { - name: Option, - channel_type: Option, - topic: Option, - icon: Option, - bitrate: Option, - user_limit: Option, - rate_limit_per_user: Option, - position: Option, - permission_overwrites: Option>, - parent_id: Option, - id: Option, - nsfw: Option, - rtc_region: Option, - default_auto_archive_duration: Option, - default_reaction_emoji: Option, - flags: Option, - default_thread_rate_limit_per_user: Option, - video_quality_mode: Option, + pub name: Option, + pub channel_type: Option, + pub topic: Option, + pub icon: Option, + pub bitrate: Option, + pub user_limit: Option, + pub rate_limit_per_user: Option, + pub position: Option, + pub permission_overwrites: Option>, + pub parent_id: Option, + pub nsfw: Option, + pub rtc_region: Option, + pub default_auto_archive_duration: Option, + pub default_reaction_emoji: Option, + pub flags: Option, + pub default_thread_rate_limit_per_user: Option, + pub video_quality_mode: Option, }