Enum hangouts_rs::EventData [−][src]
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
impl EventData
[src]
pub fn is_chat_message(&self) -> bool
[src]
Returns true
if the event is Self::ChatMessage
.
pub fn as_chat_message(&self) -> Option<&ChatMessage>
[src]
pub fn is_hangout_event(&self) -> bool
[src]
Returns true
if the event is Self::HangoutEvent
.
pub fn as_hangout_event(&self) -> Option<&HangoutEvent>
[src]
pub fn is_membership_change(&self) -> bool
[src]
Returns true
if the event is Self::MembershipChange
.
pub fn as_membership_change(&self) -> Option<&MembershipChange>
[src]
pub fn is_conversation_rename(&self) -> bool
[src]
Returns true
if the event is Self::ConversationRename
.
pub fn as_conversation_rename(&self) -> Option<&ConversationRename>
[src]
Trait Implementations
impl Clone for EventData
[src]
impl Debug for EventData
[src]
impl PartialEq<EventData> for EventData
[src]
impl StructuralPartialEq for EventData
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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>,