pub struct ChannelPosition {
pub channel_id: ChannelId,
pub position: u32,
pub parent_id: Option<ChannelId>,
}Expand description
One entry of channel.reorder and channel.reordered (§8.2, §9.2).
Fields§
§channel_id: ChannelIdThe channel moved.
position: u32Its new position.
parent_id: Option<ChannelId>Its new parent. Required, null = top level.
Trait Implementations§
Source§impl Clone for ChannelPosition
impl Clone for ChannelPosition
Source§fn clone(&self) -> ChannelPosition
fn clone(&self) -> ChannelPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChannelPosition
Source§impl Debug for ChannelPosition
impl Debug for ChannelPosition
Source§impl<'de> Deserialize<'de> for ChannelPosition
impl<'de> Deserialize<'de> for ChannelPosition
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 ChannelPosition
Source§impl PartialEq for ChannelPosition
impl PartialEq for ChannelPosition
Source§impl Serialize for ChannelPosition
impl Serialize for ChannelPosition
impl StructuralPartialEq for ChannelPosition
Auto Trait Implementations§
impl Freeze for ChannelPosition
impl RefUnwindSafe for ChannelPosition
impl Send for ChannelPosition
impl Sync for ChannelPosition
impl Unpin for ChannelPosition
impl UnsafeUnpin for ChannelPosition
impl UnwindSafe for ChannelPosition
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