pub struct Invite {
pub code: String,
pub guild: Option<Guild>,
pub channel: Channel,
pub approximate_presence_count: Option<i32>,
pub approximate_member_count: Option<i32>,
}Expand description
Represents a code that when used, adds a user to a guild or group DM channel.
Fields§
§code: StringThe ID of the invite code.
guild: Option<Guild>The guild that the invite belongs to.
channel: ChannelThe channel that the invite belongs to.
approximate_presence_count: Option<i32>The approximate count of online members.
approximate_member_count: Option<i32>The approximate count of total members.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invite
impl<'de> Deserialize<'de> for Invite
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
Auto Trait Implementations§
impl Freeze for Invite
impl RefUnwindSafe for Invite
impl Send for Invite
impl Sync for Invite
impl Unpin for Invite
impl UnwindSafe for Invite
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