pub struct FriendSummary {
pub agent_id: AgentId,
pub name: String,
pub display_name: Option<String>,
pub since: DateTime<Utc>,
}Expand description
One edge in an agent’s friends list (or a pending request).
since is accepted_at for accepted friendships and requested_at
for pending ones.
Fields§
§agent_id: AgentId§name: String§display_name: Option<String>§since: DateTime<Utc>Trait Implementations§
Source§impl Clone for FriendSummary
impl Clone for FriendSummary
Source§fn clone(&self) -> FriendSummary
fn clone(&self) -> FriendSummary
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 FriendSummary
impl Debug for FriendSummary
Source§impl<'de> Deserialize<'de> for FriendSummary
impl<'de> Deserialize<'de> for FriendSummary
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 FriendSummary
impl RefUnwindSafe for FriendSummary
impl Send for FriendSummary
impl Sync for FriendSummary
impl Unpin for FriendSummary
impl UnsafeUnpin for FriendSummary
impl UnwindSafe for FriendSummary
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