[][src]Struct serenity::model::guild::GuildInfo

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

Basic information about a guild.

Fields

id: GuildId

The unique Id of the guild.

Can be used to calculate creation date.

icon: Option<String>

The hash of the icon of the guild.

This can be used to generate a URL to the guild's icon image.

name: String

The name of the guild.

owner: bool

Indicator of whether the current user is the owner.

permissions: Permissions

The permissions that the current user has.

Implementations

impl GuildInfo[src]

pub fn icon_url(&self) -> Option<String>[src]

Returns the formatted URL of the guild's icon, if the guild has an icon.

Trait Implementations

impl Clone for GuildInfo[src]

impl Debug for GuildInfo[src]

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

impl<'a> From<&'a GuildInfo> for GuildId[src]

pub fn from(guild_info: &GuildInfo) -> GuildId[src]

Gets the Id of Guild information struct.

impl From<GuildInfo> for GuildId[src]

pub fn from(guild_info: GuildInfo) -> GuildId[src]

Gets the Id of Guild information struct.

impl Serialize for GuildInfo[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> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,