Enum discord_sdk::relations::RelationKind
source · #[repr(u8)]pub enum RelationKind {
None = 0,
Friend = 1,
Blocked = 2,
PendingIncoming = 3,
PendingOutgoing = 4,
Implicit = 5,
}
Variants§
None = 0
User has no intrinsic relationship
Friend = 1
User is a friend
Blocked = 2
User is blocked
PendingIncoming = 3
User has a pending incoming friend request to connected user
PendingOutgoing = 4
Current user has a pending outgoing friend request to user
Implicit = 5
User is not friends, but interacts with current user often (frequency + recency)
Trait Implementations§
source§impl Clone for RelationKind
impl Clone for RelationKind
source§fn clone(&self) -> RelationKind
fn clone(&self) -> RelationKind
Returns a copy 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 RelationKind
impl Debug for RelationKind
source§impl<'de> Deserialize<'de> for RelationKind
impl<'de> Deserialize<'de> for RelationKind
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 RelationKind
impl PartialEq for RelationKind
source§fn eq(&self, other: &RelationKind) -> bool
fn eq(&self, other: &RelationKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelationKind
impl Eq for RelationKind
impl StructuralPartialEq for RelationKind
Auto Trait Implementations§
impl RefUnwindSafe for RelationKind
impl Send for RelationKind
impl Sync for RelationKind
impl Unpin for RelationKind
impl UnwindSafe for RelationKind
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