pub struct Create {
pub kind: ChannelKind,
pub name: String,
pub topic: Option<String>,
pub parent_id: Option<ChannelId>,
pub position: Option<u32>,
pub slowmode_s: Option<u32>,
pub overrides: Option<Vec<Override>>,
pub retention: Option<Retention>,
pub typing: Option<TypingMode>,
pub user_limit: Option<u32>,
}Expand description
channel.create (§8.2).
SPEC: history and sync_with_parent are not create fields; they take their defaults
and change through channel.update.
Fields§
§kind: ChannelKindv1: category, text, announcement, voice; others are UNSUPPORTED_FEATURE.
name: String1–100 scalars.
topic: Option<String>≤ 1 024 scalars.
parent_id: Option<ChannelId>A category; categories have none.
position: Option<u32>Position among siblings.
slowmode_s: Option<u32>0–21 600 s.
overrides: Option<Vec<Override>>Initial overrides, checked like channel.permissions.update.
retention: Option<Retention>Retention.
typing: Option<TypingMode>Who sees typing (§10.5); absent: named.
user_limit: Option<u32>Voice channels only: the most participants, 1–99 (also capped by the host’s
mesh_max); absent = the host’s cap.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Create
impl<'de> Deserialize<'de> for Create
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Create
impl StructuralPartialEq for Create
Auto Trait Implementations§
impl Freeze for Create
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnsafeUnpin for Create
impl UnwindSafe for Create
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