#[repr(C)]pub enum ConnectionType {
Follow(PrivacyType),
Friendship(PrivacyType),
}
Expand description
Different connection type in social graph
Variants§
Follow(PrivacyType)
Follow is a one-way connection type, which means it is only stored in follower side
Friendship(PrivacyType)
Friendship is two-way connection type, which means it is stored in both sides and each side can revoke the connection for both sides
Implementations§
source§impl ConnectionType
impl ConnectionType
pub const fn privacy_type(&self) -> PrivacyType
Trait Implementations§
source§impl Clone for ConnectionType
impl Clone for ConnectionType
source§fn clone(&self) -> ConnectionType
fn clone(&self) -> ConnectionType
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 ConnectionType
impl Debug for ConnectionType
source§impl<'de> Deserialize<'de> for ConnectionType
impl<'de> Deserialize<'de> for ConnectionType
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 Display for ConnectionType
impl Display for ConnectionType
source§impl Hash for ConnectionType
impl Hash for ConnectionType
source§impl Ord for ConnectionType
impl Ord for ConnectionType
source§fn cmp(&self, other: &ConnectionType) -> Ordering
fn cmp(&self, other: &ConnectionType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConnectionType
impl PartialEq for ConnectionType
source§fn eq(&self, other: &ConnectionType) -> bool
fn eq(&self, other: &ConnectionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConnectionType
impl PartialOrd for ConnectionType
source§fn partial_cmp(&self, other: &ConnectionType) -> Option<Ordering>
fn partial_cmp(&self, other: &ConnectionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ConnectionType
impl Serialize for ConnectionType
impl Copy for ConnectionType
impl Eq for ConnectionType
impl StructuralEq for ConnectionType
impl StructuralPartialEq for ConnectionType
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionType
impl Send for ConnectionType
impl Sync for ConnectionType
impl Unpin for ConnectionType
impl UnwindSafe for ConnectionType
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