[][src]Struct twilight_model::user::CurrentUserGuild

pub struct CurrentUserGuild {
    pub id: GuildId,
    pub name: String,
    pub icon: Option<String>,
    pub owner: bool,
    pub permissions: Permissions,
    pub features: Vec<String>,
}

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: GuildId

Unique ID.

name: String

Name 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: bool

Whether the current user is the owner.

permissions: Permissions

Permissions of the current user in the guild. This excludes channels' permission overwrites.

features: Vec<String>

List of enabled guild features.

Trait Implementations

impl Clone for CurrentUserGuild[src]

impl Debug for CurrentUserGuild[src]

impl<'de> Deserialize<'de> for CurrentUserGuild[src]

impl Eq for CurrentUserGuild[src]

impl PartialEq<CurrentUserGuild> for CurrentUserGuild[src]

impl Serialize for CurrentUserGuild[src]

impl StructuralEq for CurrentUserGuild[src]

impl StructuralPartialEq for CurrentUserGuild[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.