megalodon 1.0.1

Mastodon and Pleroma API client library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct PushSubscription {
    pub id: String,
    pub endpoint: String,
    pub server_key: String,
    pub alerts: Alerts,
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct Alerts {
    pub follow: bool,
    pub favourite: bool,
    pub mention: bool,
    pub reblog: bool,
    pub poll: bool,
}