pub struct PartialServer {Show 14 fields
pub id: Option<ServerId>,
pub nonce: Option<String>,
pub owner: Option<UserId>,
pub name: Option<String>,
pub description: Option<String>,
pub channels: Option<Vec<ChannelId>>,
pub categories: Option<Vec<Category>>,
pub system_messages: Option<SystemMessageChannels>,
pub roles: Option<RolesObject>,
pub default_permissions: Option<(ServerPermissions, ChannelPermissions)>,
pub icon: Option<Attachment>,
pub banner: Option<Attachment>,
pub nsfw: Option<bool>,
pub flags: Option<ServerFlags>,
}Expand description
A server where all the fields are optional, and so can be
treated as a patch that can be applied to a Server.
Fields§
§id: Option<ServerId>§nonce: Option<String>§owner: Option<UserId>§name: Option<String>§description: Option<String>§channels: Option<Vec<ChannelId>>§categories: Option<Vec<Category>>§system_messages: Option<SystemMessageChannels>§roles: Option<RolesObject>§default_permissions: Option<(ServerPermissions, ChannelPermissions)>§icon: Option<Attachment>§nsfw: Option<bool>§flags: Option<ServerFlags>Implementations§
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 Default for PartialServer
impl Default for PartialServer
Source§fn default() -> PartialServer
fn default() -> PartialServer
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for PartialServer
impl PartialEq for PartialServer
Source§impl Serialize for PartialServer
impl Serialize for PartialServer
impl Eq for PartialServer
impl StructuralPartialEq for PartialServer
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