#[non_exhaustive]pub struct ModifyGuildChannelPosition {
pub id: ChannelId,
pub position: Patch<i32>,
pub lock_permissions: Patch<bool>,
pub parent_id: Patch<ChannelId>,
}Expand description
One entry of Modify Guild Channel Positions.
At most one entry per request may change parent_id.
discord.js counterpart: an element of RESTPatchAPIGuildChannelPositionsJSONBody (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ChannelIdThe channel.
position: Patch<i32>The new position.
lock_permissions: Patch<bool>When moving to a new category, whether to sync the permission overwrites with it.
parent_id: Patch<ChannelId>The new parent category; Patch::Clear moves the channel out of its category.
Implementations§
Trait Implementations§
Source§impl Clone for ModifyGuildChannelPosition
impl Clone for ModifyGuildChannelPosition
impl Copy for ModifyGuildChannelPosition
Source§impl Debug for ModifyGuildChannelPosition
impl Debug for ModifyGuildChannelPosition
impl Eq for ModifyGuildChannelPosition
Source§impl Hash for ModifyGuildChannelPosition
impl Hash for ModifyGuildChannelPosition
impl StructuralPartialEq for ModifyGuildChannelPosition
Auto Trait Implementations§
impl Forget for ModifyGuildChannelPosition
impl Freeze for ModifyGuildChannelPosition
impl Move for ModifyGuildChannelPosition
impl RefUnwindSafe for ModifyGuildChannelPosition
impl Send for ModifyGuildChannelPosition
impl Sync for ModifyGuildChannelPosition
impl Unpin for ModifyGuildChannelPosition
impl UnsafeUnpin for ModifyGuildChannelPosition
impl UnwindSafe for ModifyGuildChannelPosition
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