Struct robespierre_models::server::PartialServer [−][src]
pub struct PartialServer {
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<ChannelCategory>>,
pub system_messages: Option<SystemMessagesChannels>,
pub roles: Option<RolesObject>,
pub default_permissions: Option<(ServerPermissions, ChannelPermissions)>,
pub icon: Option<Attachment>,
pub banner: Option<Attachment>,
}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<ChannelCategory>>system_messages: Option<SystemMessagesChannels>roles: Option<RolesObject>default_permissions: Option<(ServerPermissions, ChannelPermissions)>icon: Option<Attachment>Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PartialServer
impl Send for PartialServer
impl Sync for PartialServer
impl Unpin for PartialServer
impl UnwindSafe for PartialServer
Blanket Implementations
Mutably borrows from an owned value. Read more