pub struct FriendRequest {
pub id: String,
pub from_user_id: String,
pub to_user_id: String,
pub status: String,
pub message: Option<String>,
pub req_count: i32,
pub last_req_at: String,
pub responded_at: Option<String>,
pub responded_message: Option<String>,
pub expires_at: String,
pub created_at: String,
pub updated_at: String,
}Expand description
好友请求
Fields§
§id: String§from_user_id: String§to_user_id: String§status: String§message: Option<String>§req_count: i32§last_req_at: String§responded_at: Option<String>§responded_message: Option<String>§expires_at: String§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for FriendRequest
impl Clone for FriendRequest
Source§fn clone(&self) -> FriendRequest
fn clone(&self) -> FriendRequest
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 FriendRequest
impl Debug for FriendRequest
Source§impl<'de> Deserialize<'de> for FriendRequest
impl<'de> Deserialize<'de> for FriendRequest
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 FriendRequest
impl RefUnwindSafe for FriendRequest
impl Send for FriendRequest
impl Sync for FriendRequest
impl Unpin for FriendRequest
impl UnsafeUnpin for FriendRequest
impl UnwindSafe for FriendRequest
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