Struct rive_models::server::PartialServer
source · 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 copy 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