pub struct PartialServer {Show 14 fields
pub owner: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub channels: Option<Vec<String>>,
pub categories: Option<Vec<Category>>,
pub system_messages: Option<SystemMessageChannels>,
pub roles: Option<HashMap<String, Role>>,
pub default_permissions: Option<Permission>,
pub icon: Option<Attachment>,
pub banner: Option<Attachment>,
pub flags: Option<ServerFlags>,
pub nsfw: Option<bool>,
pub analytics: Option<bool>,
pub discoverable: Option<bool>,
}Expand description
Partial representation of a server on Revolt
Fields§
§owner: Option<String>User id of the owner
name: Option<String>Name of the server
description: Option<String>Description for the server
channels: Option<Vec<String>>Channels within this server
categories: Option<Vec<Category>>Categories for this server
system_messages: Option<SystemMessageChannels>Configuration for sending system event messages
roles: Option<HashMap<String, Role>>Roles for this server
default_permissions: Option<Permission>Default set of server and channel permissions
icon: Option<Attachment>Icon attachment
Banner attachment
flags: Option<ServerFlags>Enum of server flags
nsfw: Option<bool>Whether this server is flagged as not safe for work
analytics: Option<bool>Whether to enable analytics
discoverable: Option<bool>Whether this server should be publicly discoverable
Trait Implementations§
Source§impl Clone for PartialServer
impl Clone for PartialServer
Source§fn clone(&self) -> PartialServer
fn clone(&self) -> PartialServer
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 PartialServer
impl Debug for PartialServer
Source§impl<'de> Deserialize<'de> for PartialServer
impl<'de> Deserialize<'de> for PartialServer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PartialServer
impl RefUnwindSafe for PartialServer
impl Send for PartialServer
impl Sync for PartialServer
impl Unpin for PartialServer
impl UnwindSafe for PartialServer
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