pub struct Channel {
Show 34 fields pub id: Snowflake, pub channel_type: i32, pub guild_id: Option<String>, pub position: Option<i32>, pub permission_overwrites: Option<Vec<PermissionOverwrite>>, pub name: Option<String>, pub topic: Option<String>, pub nsfw: Option<bool>, pub last_message_id: Option<String>, pub bitrate: Option<i32>, pub user_limit: Option<i32>, pub rate_limit_per_user: Option<i32>, pub recipients: Option<Vec<User>>, pub icon: Option<String>, pub owner_id: Option<String>, pub application_id: Option<String>, pub parent_id: Option<String>, pub last_pin_timestamp: Option<String>, pub rtc_region: Option<String>, pub video_quality_mode: Option<i32>, pub message_count: Option<i32>, pub member_count: Option<i32>, pub thread_metadata: Option<ThreadMetadata>, pub member: Option<ThreadMember>, pub default_auto_archive_duration: Option<i32>, pub permissions: Option<String>, pub flags: Option<i32>, pub total_message_sent: Option<i32>, pub available_tags: Option<Vec<Tag>>, pub applied_tags: Option<Vec<String>>, pub default_reaction_emoji: Option<DefaultReaction>, pub default_thread_rate_limit_per_user: Option<i32>, pub default_sort_order: Option<i32>, pub default_forum_layout: Option<i32>,
}

Fields§

§id: Snowflake§channel_type: i32§guild_id: Option<String>§position: Option<i32>§permission_overwrites: Option<Vec<PermissionOverwrite>>§name: Option<String>§topic: Option<String>§nsfw: Option<bool>§last_message_id: Option<String>§bitrate: Option<i32>§user_limit: Option<i32>§rate_limit_per_user: Option<i32>§recipients: Option<Vec<User>>§icon: Option<String>§owner_id: Option<String>§application_id: Option<String>§parent_id: Option<String>§last_pin_timestamp: Option<String>§rtc_region: Option<String>§video_quality_mode: Option<i32>§message_count: Option<i32>§member_count: Option<i32>§thread_metadata: Option<ThreadMetadata>§member: Option<ThreadMember>§default_auto_archive_duration: Option<i32>§permissions: Option<String>§flags: Option<i32>§total_message_sent: Option<i32>§available_tags: Option<Vec<Tag>>§applied_tags: Option<Vec<String>>§default_reaction_emoji: Option<DefaultReaction>§default_thread_rate_limit_per_user: Option<i32>§default_sort_order: Option<i32>§default_forum_layout: Option<i32>

Trait Implementations§

source§

impl Clone for Channel

source§

fn clone(&self) -> Channel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Channel

source§

fn default() -> Channel

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Channel

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Channel

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,