Struct discord_flows::model::GuildInfo
source · pub struct GuildInfo {
pub id: GuildId,
pub icon: Option<String>,
pub name: String,
pub owner: bool,
pub permissions: Permissions,
}
Expand description
Basic information about a guild.
Discord docs, subset undocumented (closest thing is this).
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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for GuildInfo
impl<'de> Deserialize<'de> for GuildInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<GuildInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<GuildInfo, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for GuildInfo
impl Serialize for GuildInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GuildInfo
impl Send for GuildInfo
impl Sync for GuildInfo
impl Unpin for GuildInfo
impl UnwindSafe for GuildInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more