pub struct CachedChannel {Show 20 fields
pub application_id: Option<Id<ApplicationMarker>>,
pub bitrate: Option<u32>,
pub default_auto_archive_duration: Option<AutoArchiveDuration>,
pub guild_id: Option<Id<GuildMarker>>,
pub icon: Option<ImageHash>,
pub id: Id<ChannelMarker>,
pub invitable: Option<bool>,
pub kind: ChannelType,
pub name: Option<String>,
pub nsfw: Option<bool>,
pub owner_id: Option<Id<UserMarker>>,
pub parent_id: Option<Id<ChannelMarker>>,
pub permission_overwrites: Option<Vec<PermissionOverwrite>>,
pub position: Option<i32>,
pub rate_limit_per_user: Option<u16>,
pub rtc_region: Option<String>,
pub thread_metadata: Option<ThreadMetadata>,
pub topic: Option<String>,
pub user_limit: Option<u32>,
pub video_quality_mode: Option<VideoQualityMode>,
}Expand description
A cached channel
It’s the same as twilight_model::channel::Channel except:
-
recipientsfield is removed, as it’s only sent in DM channels, which are cached separately -
last_message_id,last_pin_timestamp,member_countandmessage_countfields are removed, as keeping them up-to-date would add unnecessary caching overhead -
memberandnewly_createdfields are removed, as they’re only sent in some HTTP endpoints
Fields§
§application_id: Option<Id<ApplicationMarker>>§bitrate: Option<u32>§default_auto_archive_duration: Option<AutoArchiveDuration>§guild_id: Option<Id<GuildMarker>>§icon: Option<ImageHash>§id: Id<ChannelMarker>§invitable: Option<bool>§kind: ChannelType§name: Option<String>§nsfw: Option<bool>§owner_id: Option<Id<UserMarker>>§parent_id: Option<Id<ChannelMarker>>§permission_overwrites: Option<Vec<PermissionOverwrite>>§position: Option<i32>§rate_limit_per_user: Option<u16>§rtc_region: Option<String>§thread_metadata: Option<ThreadMetadata>§topic: Option<String>§user_limit: Option<u32>§video_quality_mode: Option<VideoQualityMode>Trait Implementations§
Source§impl Clone for CachedChannel
impl Clone for CachedChannel
Source§fn clone(&self) -> CachedChannel
fn clone(&self) -> CachedChannel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedChannel
impl Debug for CachedChannel
Auto Trait Implementations§
impl Freeze for CachedChannel
impl RefUnwindSafe for CachedChannel
impl Send for CachedChannel
impl Sync for CachedChannel
impl Unpin for CachedChannel
impl UnwindSafe for CachedChannel
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