pub struct Friendship {Show 14 fields
pub id: String,
pub user_id: String,
pub friend_id: String,
pub remark: Option<String>,
pub group_id: Option<String>,
pub is_favorite: bool,
pub tags: Option<Value>,
pub can_view_moments: Option<bool>,
pub can_view_album: Option<bool>,
pub friend_since: String,
pub created_at: String,
pub updated_at: String,
pub friend: Option<User>,
pub group: Option<FriendGroupInfo>,
}Expand description
好友关系
Fields§
§id: String§user_id: String§friend_id: String§remark: Option<String>§group_id: Option<String>§is_favorite: bool§can_view_moments: Option<bool>§can_view_album: Option<bool>§friend_since: String§created_at: String§updated_at: String§friend: Option<User>§group: Option<FriendGroupInfo>Trait Implementations§
Source§impl Clone for Friendship
impl Clone for Friendship
Source§fn clone(&self) -> Friendship
fn clone(&self) -> Friendship
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 Friendship
impl Debug for Friendship
Source§impl<'de> Deserialize<'de> for Friendship
impl<'de> Deserialize<'de> for Friendship
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Friendship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Friendship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Friendship
impl Serialize for Friendship
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Friendship
impl RefUnwindSafe for Friendship
impl Send for Friendship
impl Sync for Friendship
impl Unpin for Friendship
impl UnsafeUnpin for Friendship
impl UnwindSafe for Friendship
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