Struct hangouts_rs::Conversation[][src]

pub struct Conversation {
    pub conversation_id: String,
    pub id: String,
    pub name: Option<String>,
    pub current_participants: Vec<ParticipantId>,
    pub participants: HashMap<ParticipantId, Participant>,
    pub events: Vec<Event>,
    pub self_state: SelfState,
    pub sort_timestamp: DateTime<Utc>,
    pub group_link_sharing_status: LinkSharingStatus,
}

A single conversation.

Fields

conversation_id: Stringid: Stringname: Option<String>

Name of the conversation. Typically None if the conversation is one-on-one.

current_participants: Vec<ParticipantId>

List of current participants in the conversation.

participants: HashMap<ParticipantId, Participant>

List of all past and present participants in the conversation.

events: Vec<Event>

List of conversation events.

self_state: SelfState

User state with regards to the conversation.

sort_timestamp: DateTime<Utc>

Timestamp used to sort conversations.

group_link_sharing_status: LinkSharingStatus

Currently set group link sharing mode.

Implementations

impl Conversation[src]

pub fn current_participants(&self) -> Vec<&Participant>[src]

Get the data for all the current participants in the conversation.

pub fn sort_events_by_time(&mut self)[src]

Sort the events by timestamp, from oldest to newest.

Trait Implementations

impl Clone for Conversation[src]

impl Debug for Conversation[src]

impl PartialEq<Conversation> for Conversation[src]

impl StructuralPartialEq for Conversation[src]

impl TryFrom<Conversation> for Conversation[src]

type Error = ConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.