pub struct UserRelation {
pub id: Id<User>,
pub is_following: bool,
pub has_pending_follow_request_from_you: bool,
pub has_pending_follow_request_to_you: bool,
pub is_followed: bool,
pub is_blocking: bool,
pub is_blocked: bool,
pub is_muted: bool,
}Fields§
§id: Id<User>§is_following: bool§has_pending_follow_request_from_you: bool§has_pending_follow_request_to_you: bool§is_followed: bool§is_blocking: bool§is_blocked: bool§is_muted: boolTrait Implementations§
Source§impl Clone for UserRelation
impl Clone for UserRelation
Source§fn clone(&self) -> UserRelation
fn clone(&self) -> UserRelation
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 UserRelation
impl Debug for UserRelation
Source§impl<'de> Deserialize<'de> for UserRelation
impl<'de> Deserialize<'de> for UserRelation
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
Auto Trait Implementations§
impl Freeze for UserRelation
impl RefUnwindSafe for UserRelation
impl Send for UserRelation
impl Sync for UserRelation
impl Unpin for UserRelation
impl UnwindSafe for UserRelation
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