#[non_exhaustive]pub struct RequestChannelInfo {
pub guild_id: GuildId,
pub fields: Vec<ChannelInfoField>,
}Expand description
Request Channel Info
(opcode 43): asks for ephemeral data of a guild’s channels; it arrives in a
ChannelInfo event.
discord.js counterpart: GatewayRequestChannelInfo (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.guild_id: GuildIdThe guild.
fields: Vec<ChannelInfoField>The fields to request.
Implementations§
Source§impl RequestChannelInfo
impl RequestChannelInfo
Sourcepub fn new(
guild_id: GuildId,
fields: impl IntoIterator<Item = ChannelInfoField>,
) -> Self
pub fn new( guild_id: GuildId, fields: impl IntoIterator<Item = ChannelInfoField>, ) -> Self
Requests the given fields of the guild’s channels.
discord.js counterpart: GatewayRequestChannelInfoData (discord-api-types).
Trait Implementations§
Source§impl Clone for RequestChannelInfo
impl Clone for RequestChannelInfo
Source§impl Debug for RequestChannelInfo
impl Debug for RequestChannelInfo
impl Eq for RequestChannelInfo
Source§impl GatewayCommand for RequestChannelInfo
impl GatewayCommand for RequestChannelInfo
Source§impl PartialEq for RequestChannelInfo
impl PartialEq for RequestChannelInfo
Source§impl Serialize for RequestChannelInfo
impl Serialize for RequestChannelInfo
impl StructuralPartialEq for RequestChannelInfo
Auto Trait Implementations§
impl Freeze for RequestChannelInfo
impl RefUnwindSafe for RequestChannelInfo
impl Send for RequestChannelInfo
impl Sync for RequestChannelInfo
impl Unpin for RequestChannelInfo
impl UnsafeUnpin for RequestChannelInfo
impl UnwindSafe for RequestChannelInfo
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