pub struct Update {
pub channel_id: Option<ChannelId>,
pub name: Patch<String>,
pub topic: Patch<String>,
pub parent_id: Patch<ChannelId>,
pub slowmode_s: Patch<u32>,
pub locked: Patch<bool>,
pub typing: Patch<TypingMode>,
pub retention: Patch<Retention>,
pub sync_with_parent: Patch<bool>,
pub history: Patch<HistoryAccess>,
pub public_distribution: Patch<bool>,
pub user_limit: Patch<u32>,
}Expand description
channel.update (§8.2): any of the fields; null clears only topic and parent_id.
Fields§
§channel_id: Option<ChannelId>The channel (or on the envelope).
name: Patch<String>New name.
topic: Patch<String>New topic; null clears.
parent_id: Patch<ChannelId>New parent; null moves to the top level.
slowmode_s: Patch<u32>New slowmode.
locked: Patch<bool>Lock or unlock.
typing: Patch<TypingMode>Who sees typing (§10.5): named, anonymous or off.
retention: Patch<Retention>New retention.
sync_with_parent: Patch<bool>Re-link to or detach from the parent’s overrides.
history: Patch<HistoryAccess>New history policy (increments history_rev).
public_distribution: Patch<bool>Experimental (Appendix A); owner only.
user_limit: Patch<u32>Voice channels only: new user_limit (1–99); null removes it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
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 Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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