Struct robespierre_models::server::Server [−][src]
pub struct Server {
pub id: ServerId,
pub nonce: Option<String>,
pub owner: UserId,
pub name: String,
pub description: Option<String>,
pub channels: Vec<ChannelId>,
pub categories: Vec<ChannelCategory>,
pub system_messages: Option<SystemMessagesChannels>,
pub roles: Option<RolesObject>,
pub default_permissions: (ServerPermissions, ChannelPermissions),
pub icon: Option<Attachment>,
pub banner: Option<Attachment>,
}Expand description
A server.
Fields
id: ServerIdnonce: Option<String>owner: UserIdname: Stringdescription: Option<String>channels: Vec<ChannelId>categories: Vec<ChannelCategory>system_messages: Option<SystemMessagesChannels>roles: Option<RolesObject>default_permissions: (ServerPermissions, ChannelPermissions)icon: Option<Attachment>Trait Implementations
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 RefUnwindSafe for Server
impl UnwindSafe for Server
Blanket Implementations
Mutably borrows from an owned value. Read more