pub struct Position {
pub id: Id<ChannelMarker>,
pub lock_permissions: Option<Option<bool>>,
pub parent_id: Option<Option<Id<ChannelMarker>>>,
pub position: Option<Option<u64>>,
}
Expand description
Used to update the position of channels over HTTP.
§Note:
The fields with Option<Option<T>>
will be null
if they have
the form Some(None)
, None
will be skipped.
Fields§
§id: Id<ChannelMarker>
Channel id
lock_permissions: Option<Option<bool>>
syncs the permission overwrites with the new parent, if moving to a new category
parent_id: Option<Option<Id<ChannelMarker>>>
The new parent ID for the channel that is moved
position: Option<Option<u64>>
Sorting position of the channel
Trait Implementations§
source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
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 StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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
)