pub enum EventType {
Show 48 variants
AlertWords,
Attachment,
ChannelFolder,
CustomProfileFields,
DefaultStreamGroups,
DefaultStreams,
DeleteMessage,
Drafts,
HasZoomToken,
Heartbeat,
InvitesChanged,
Message,
MutedTopics,
MutedUsers,
NavigationView,
OnboardingSteps,
Presence,
PushDevice,
Reaction,
Realm,
RealmBot,
RealmDomains,
RealmEmoji,
RealmExport,
RealmExportConsent,
RealmFilters,
RealmLinkifiers,
RealmPlaygrounds,
RealmUser,
RealmUserSettingsDefaults,
Reminders,
Restart,
SavedSnippets,
ScheduledMessages,
Stream,
Submessage,
Subscription,
Typing,
TypingEditMessage,
UpdateDisplaySettings,
UpdateGlobalNotifications,
UpdateMessage,
UpdateMessageFlags,
UserGroup,
UserSettings,
UserStatus,
UserTopic,
WebReloadClient,
}Expand description
A JSON-encoded array indicating which types of events you’re interested in. Values that you might find useful include:
- message (messages)
- subscription (changes in your subscriptions)
- realm_user (changes to users in the organization and their properties, such as their name).
If you do not specify this parameter, you will receive all
events, and have to filter out the events not relevant to
your client in your client code. For most applications, one
is only interested in messages, so one specifies:
"event_types": ["message"]
Event types not supported by the server are ignored, in order to simplify the implementation of client apps that support multiple server versions.
For details see: https://zulip.com/api/get-events#events-by-type
Variants§
AlertWords
Attachment
ChannelFolder
CustomProfileFields
DefaultStreamGroups
DefaultStreams
DeleteMessage
Drafts
HasZoomToken
Heartbeat
InvitesChanged
Message
MutedTopics
MutedUsers
OnboardingSteps
Presence
PushDevice
Reaction
Realm
RealmBot
RealmDomains
RealmEmoji
RealmExport
RealmExportConsent
RealmFilters
RealmLinkifiers
RealmPlaygrounds
RealmUser
RealmUserSettingsDefaults
Reminders
Restart
SavedSnippets
ScheduledMessages
Stream
Submessage
Subscription
Typing
TypingEditMessage
UpdateDisplaySettings
UpdateGlobalNotifications
UpdateMessage
UpdateMessageFlags
UserGroup
UserSettings
UserStatus
UserTopic
WebReloadClient
Implementations§
Trait Implementations§
impl Copy for EventType
Source§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnsafeUnpin for EventType
impl UnwindSafe for EventType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.