Enum webex::types::ActivityType
source · pub enum ActivityType {
Message(MessageActivity),
Space(SpaceActivity),
AdaptiveCardSubmit,
Locus,
Janus,
StartTyping,
Highlight,
Unknown(String),
}
Expand description
Get what activity an Activity
represents.
Variants§
Message(MessageActivity)
Message changed - see MessageActivity
for details.
Space(SpaceActivity)
The space the bot is in has changed - see SpaceActivity
for details.
AdaptiveCardSubmit
The user has submitted an AdaptiveCard
.
Locus
Meeting event.
TODO: This needs to be broken down like Message
and Space
, if anyone cares.
Janus
Call event. TODO: This may need to be broken down. May provide details about call insights/recording?
StartTyping
Someone started typing.
Highlight
Not sure? perhaps when someone catches up in the conversation?
Unknown(String)
Unknown activity. Contains a representation of the string that failed to parse - unknown
activities will contain event.data.event_type
, otherwise if it’s an Unknown
conversation.activity
type (belonging in Message or Space), the string will be
"conversation.activity.{event.data.activity.verb}"
, for example it would be
"conversation.activity.post"
for Message(MessageActivity::Posted)
Trait Implementations§
source§impl Clone for ActivityType
impl Clone for ActivityType
source§fn clone(&self) -> ActivityType
fn clone(&self) -> ActivityType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActivityType
impl Debug for ActivityType
source§impl From<ActivityType> for GlobalIdType
impl From<ActivityType> for GlobalIdType
source§fn from(a: ActivityType) -> Self
fn from(a: ActivityType) -> Self
source§impl PartialEq for ActivityType
impl PartialEq for ActivityType
source§fn eq(&self, other: &ActivityType) -> bool
fn eq(&self, other: &ActivityType) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ActivityType
impl StructuralEq for ActivityType
impl StructuralPartialEq for ActivityType
Auto Trait Implementations§
impl RefUnwindSafe for ActivityType
impl Send for ActivityType
impl Sync for ActivityType
impl Unpin for ActivityType
impl UnwindSafe for ActivityType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.