pub enum RelationshipStatus {
None,
User,
Friend,
Outgoing,
Incoming,
Blocked,
BlockedOther,
}Expand description
User’s relationship with another user (or themselves)
Variants§
None
No relationship with other user
User
Other user is us
Friend
Friends with the other user
Outgoing
Pending friend request to user
Incoming
Incoming friend request from user
Blocked
Blocked this user
BlockedOther
Blocked by this user
Trait Implementations§
Source§impl Clone for RelationshipStatus
impl Clone for RelationshipStatus
Source§fn clone(&self) -> RelationshipStatus
fn clone(&self) -> RelationshipStatus
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 RelationshipStatus
impl Debug for RelationshipStatus
Source§impl Default for RelationshipStatus
impl Default for RelationshipStatus
Source§fn default() -> RelationshipStatus
fn default() -> RelationshipStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelationshipStatus
impl<'de> Deserialize<'de> for RelationshipStatus
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 RelationshipStatus
impl PartialEq for RelationshipStatus
Source§fn eq(&self, other: &RelationshipStatus) -> bool
fn eq(&self, other: &RelationshipStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationshipStatus
impl Serialize for RelationshipStatus
impl StructuralPartialEq for RelationshipStatus
Auto Trait Implementations§
impl Freeze for RelationshipStatus
impl RefUnwindSafe for RelationshipStatus
impl Send for RelationshipStatus
impl Sync for RelationshipStatus
impl Unpin for RelationshipStatus
impl UnsafeUnpin for RelationshipStatus
impl UnwindSafe for RelationshipStatus
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