pub struct CachedChannel {
Show 24 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 position: Option<i32>, pub rate_limit_per_user: Option<u16>, pub rtc_region: Option<String>, pub thread_archived: Option<bool>, pub thread_auto_archive_duration: Option<AutoArchiveDuration>, pub thread_archive_timestamp: Option<Timestamp>, pub thread_create_timestamp: Option<Timestamp>, pub thread_invitable: Option<bool>, pub thread_locked: Option<bool>, 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:

  • recipients field is removed, as it’s only sent in DM channels, which are cached separately

  • permission_overwrites field is removed, as they’re cached separately

  • last_message_id, last_pin_timestamp, member_count and message_count fields are removed, as keeping them up-to-date would add unnecessary caching overhead

  • member and newly_created fields are removed, as they’re only sent in some HTTP endpoints

  • thread_metadata field is flattened, making this struct easier to cache

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: ChannelTypename: Option<String>nsfw: Option<bool>owner_id: Option<Id<UserMarker>>parent_id: Option<Id<ChannelMarker>>position: Option<i32>rate_limit_per_user: Option<u16>rtc_region: Option<String>thread_archived: Option<bool>thread_auto_archive_duration: Option<AutoArchiveDuration>thread_archive_timestamp: Option<Timestamp>thread_create_timestamp: Option<Timestamp>thread_invitable: Option<bool>thread_locked: Option<bool>topic: Option<String>user_limit: Option<u32>video_quality_mode: Option<VideoQualityMode>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more