pub enum EventData {
ChatMessage(ChatMessage),
HangoutEvent(HangoutEvent),
MembershipChange(MembershipChange),
ConversationRename(ConversationRename),
}
Expand description
Data body of an event, which can be one of four types.
Variants§
ChatMessage(ChatMessage)
A regular chat message.
HangoutEvent(HangoutEvent)
A hangout event.
MembershipChange(MembershipChange)
Conversation participant membership change.
ConversationRename(ConversationRename)
Conversation name change.
Implementations§
Source§impl EventData
impl EventData
Sourcepub fn is_chat_message(&self) -> bool
pub fn is_chat_message(&self) -> bool
Returns true
if the event is Self::ChatMessage
.
pub fn as_chat_message(&self) -> Option<&ChatMessage>
Sourcepub fn is_hangout_event(&self) -> bool
pub fn is_hangout_event(&self) -> bool
Returns true
if the event is Self::HangoutEvent
.
pub fn as_hangout_event(&self) -> Option<&HangoutEvent>
Sourcepub fn is_membership_change(&self) -> bool
pub fn is_membership_change(&self) -> bool
Returns true
if the event is Self::MembershipChange
.
pub fn as_membership_change(&self) -> Option<&MembershipChange>
Sourcepub fn is_conversation_rename(&self) -> bool
pub fn is_conversation_rename(&self) -> bool
Returns true
if the event is Self::ConversationRename
.
pub fn as_conversation_rename(&self) -> Option<&ConversationRename>
Trait Implementations§
impl StructuralPartialEq for EventData
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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