#[non_exhaustive]pub struct SourceGuild {
pub id: GuildId,
pub name: CompactString,
pub icon: Option<ImageHash>,
}Expand description
The guild of the channel a channel follower webhook follows.
discord.js counterpart: APIWebhookSourceGuild (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: GuildIdThe guild’s ID.
name: CompactStringThe guild’s name.
icon: Option<ImageHash>The guild’s icon hash.
Trait Implementations§
Source§impl Clone for SourceGuild
impl Clone for SourceGuild
Source§impl Debug for SourceGuild
impl Debug for SourceGuild
Source§impl<'de> Deserialize<'de> for SourceGuild
impl<'de> Deserialize<'de> for SourceGuild
Source§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
impl Eq for SourceGuild
Source§impl Hash for SourceGuild
impl Hash for SourceGuild
Source§impl PartialEq for SourceGuild
impl PartialEq for SourceGuild
Source§impl Serialize for SourceGuild
impl Serialize for SourceGuild
impl StructuralPartialEq for SourceGuild
Auto Trait Implementations§
impl Forget for SourceGuild
impl Freeze for SourceGuild
impl Move for SourceGuild
impl RefUnwindSafe for SourceGuild
impl Send for SourceGuild
impl Sync for SourceGuild
impl Unpin for SourceGuild
impl UnsafeUnpin for SourceGuild
impl UnwindSafe for SourceGuild
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