pub enum SnapshotItem {
Channel(Box<Channel>),
Role(Role),
Community(Box<CommunitySnapshot>),
}Expand description
One snapshot item; the variant follows the requested part.
Variants§
Channel(Box<Channel>)
part: "channels".
Role(Role)
part: "roles".
Community(Box<CommunitySnapshot>)
part: "community".
Trait Implementations§
Source§impl Clone for SnapshotItem
impl Clone for SnapshotItem
Source§fn clone(&self) -> SnapshotItem
fn clone(&self) -> SnapshotItem
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 moreSource§impl Debug for SnapshotItem
impl Debug for SnapshotItem
Source§impl<'de> Deserialize<'de> for SnapshotItem
impl<'de> Deserialize<'de> for SnapshotItem
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
Source§impl PartialEq for SnapshotItem
impl PartialEq for SnapshotItem
Source§impl Serialize for SnapshotItem
impl Serialize for SnapshotItem
impl StructuralPartialEq for SnapshotItem
Auto Trait Implementations§
impl Freeze for SnapshotItem
impl RefUnwindSafe for SnapshotItem
impl Send for SnapshotItem
impl Sync for SnapshotItem
impl Unpin for SnapshotItem
impl UnsafeUnpin for SnapshotItem
impl UnwindSafe for SnapshotItem
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