mastodon-async/src/entities/event.rs

15 lines
349 B
Rust
Raw Normal View History

2022-11-27 14:44:43 +00:00
use entities::{notification::Notification, status::Status};
#[derive(Debug, Clone)]
/// 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,
}