pub struct EditServerData {
pub name: Option<String>,
pub description: Option<String>,
pub icon: Option<String>,
pub banner: Option<String>,
pub categories: Option<Vec<Category>>,
pub system_messages: Option<SystemMessageChannels>,
pub nsfw: Option<bool>,
pub discoverable: Option<bool>,
pub analytics: Option<bool>,
pub remove: Option<Vec<FieldsServer>>,
}Expand description
Edit server data
Fields§
§name: Option<String>Server name
description: Option<String>Server description
icon: Option<String>Attachment Id for icon
Attachment Id for banner
categories: Option<Vec<Category>>Category structure for server
system_messages: Option<SystemMessageChannels>System message configuration
nsfw: Option<bool>§discoverable: Option<bool>Whether this server is public and should show up on Revolt Discover
analytics: Option<bool>Whether analytics should be collected for this server
Must be enabled in order to show up on Revolt Discover.
remove: Option<Vec<FieldsServer>>Fields to remove from server object
Trait Implementations§
Source§impl Clone for EditServerData
impl Clone for EditServerData
Source§fn clone(&self) -> EditServerData
fn clone(&self) -> EditServerData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditServerData
impl Debug for EditServerData
Source§impl Default for EditServerData
impl Default for EditServerData
Source§fn default() -> EditServerData
fn default() -> EditServerData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditServerData
impl RefUnwindSafe for EditServerData
impl Send for EditServerData
impl Sync for EditServerData
impl Unpin for EditServerData
impl UnwindSafe for EditServerData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more