Struct hangouts_rs::Conversation [−][src]
A single conversation.
Fields
conversation_id: String
id: String
name: 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]
fn clone(&self) -> Conversation
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Conversation
[src]
impl PartialEq<Conversation> for Conversation
[src]
fn eq(&self, other: &Conversation) -> bool
[src]
fn ne(&self, other: &Conversation) -> bool
[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.
fn try_from(val: Conversation) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnwindSafe for Conversation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,