pub struct TextFields {
pub id: Id<ChannelMarker>,
pub kind: ChannelType,
pub name: String,
pub nsfw: Option<bool>,
pub permission_overwrites: Option<Vec<PermissionOverwrite>>,
pub parent_id: Option<Id<ChannelMarker>>,
pub rate_limit_per_user: Option<u16>,
pub topic: Option<String>,
}
Expand description
Text channel fields sent to Discord.
Use TextFieldsBuilder
to build one.
Fields§
§id: Id<ChannelMarker>
§kind: ChannelType
§name: String
§nsfw: Option<bool>
§permission_overwrites: Option<Vec<PermissionOverwrite>>
§parent_id: Option<Id<ChannelMarker>>
§rate_limit_per_user: Option<u16>
§topic: Option<String>
Trait Implementations§
source§impl Clone for TextFields
impl Clone for TextFields
source§fn clone(&self) -> TextFields
fn clone(&self) -> TextFields
Returns a copy 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 TextFields
impl Debug for TextFields
source§impl PartialEq for TextFields
impl PartialEq for TextFields
source§impl Serialize for TextFields
impl Serialize for TextFields
impl Eq for TextFields
impl StructuralPartialEq for TextFields
Auto Trait Implementations§
impl Freeze for TextFields
impl RefUnwindSafe for TextFields
impl Send for TextFields
impl Sync for TextFields
impl Unpin for TextFields
impl UnwindSafe for TextFields
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more