mastodon_api\models/
filters.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Deserialize, Serialize)]
4pub struct Filter {
5    pub id: String,
6    pub phrase: String,
7    pub context: Vec<String>,
8    pub expires_at: Option<String>,
9    pub irreversible: bool,
10    pub whole_word: bool,
11}
12
13#[derive(Debug, Clone, Deserialize, Serialize)]
14pub struct List {
15    pub id: String,
16    pub title: String,
17    pub replies_policy: String,
18}