mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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,
|
|
|
|
}
|