#[repr(u8)]pub enum PrivateType {
Public = 0,
AdminOnly = 1,
AdminAndSpecifiedMembers = 2,
Unknown(u8),
}Expand description
Private type enumeration.
Variants§
Public = 0
Public channel (0)
AdminOnly = 1
Admin and owner only (1)
AdminAndSpecifiedMembers = 2
Admin and specified members (2)
Unknown(u8)
Unknown private type
Implementations§
Trait Implementations§
Source§impl Clone for PrivateType
impl Clone for PrivateType
Source§fn clone(&self) -> PrivateType
fn clone(&self) -> PrivateType
Returns a duplicate of the value. Read more
1.0.0 · 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 PrivateType
impl Debug for PrivateType
Source§impl<'de> Deserialize<'de> for PrivateType
impl<'de> Deserialize<'de> for PrivateType
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 From<PrivateType> for u32
impl From<PrivateType> for u32
Source§fn from(private_type: PrivateType) -> Self
fn from(private_type: PrivateType) -> Self
Converts to this type from the input type.
Source§impl From<PrivateType> for u8
impl From<PrivateType> for u8
Source§fn from(private_type: PrivateType) -> Self
fn from(private_type: PrivateType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PrivateType
impl From<u8> for PrivateType
Source§impl Hash for PrivateType
impl Hash for PrivateType
Source§impl PartialEq for PrivateType
impl PartialEq for PrivateType
Source§impl Serialize for PrivateType
impl Serialize for PrivateType
impl Copy for PrivateType
impl Eq for PrivateType
impl StructuralPartialEq for PrivateType
Auto Trait Implementations§
impl Freeze for PrivateType
impl RefUnwindSafe for PrivateType
impl Send for PrivateType
impl Sync for PrivateType
impl Unpin for PrivateType
impl UnwindSafe for PrivateType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.