summaryrefslogtreecommitdiffstats
path: root/src/entities/event.rs
blob: bbf5af11ba84a734e1fb747ce43764ebce885fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::entities::{notification::Notification, status::Status};

#[derive(Debug, Clone)]
#[allow(clippy::large_enum_variant)]
/// Events that come from the /streaming/user API call
pub enum Event {
    /// Update event
    Update(Status),
    /// Notification event
    Notification(Notification),
    /// Delete event
    Delete(String),
    /// FiltersChanged event
    FiltersChanged,
}