Struct twilight_model::user::CurrentUserGuild [−][src]
pub struct CurrentUserGuild {
pub id: GuildId,
pub name: String,
pub icon: Option<String>,
pub owner: bool,
pub permissions: Permissions,
pub features: Vec<String>,
}Expand description
Information about a guild the current user is in.
This is a partial guild used for the Get Current User Guilds endpoint.
Refer to the Discord documentation for more information.
Fields
id: GuildIdUnique ID.
name: StringName of the guild.
The name must be at least 2 characters long and at most 100 characters long.
icon: Option<String>Hash of the icon.
Refer to the Discord documentation for more information.
owner: boolWhether the current user is the owner.
permissions: PermissionsPermissions of the current user in the guild. This excludes channels’ permission overwrites.
features: Vec<String>List of enabled guild features.
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
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 CurrentUserGuild
impl Send for CurrentUserGuild
impl Sync for CurrentUserGuild
impl Unpin for CurrentUserGuild
impl UnwindSafe for CurrentUserGuild
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more