2022-11-17 19:14:29 +00:00
|
|
|
use activitystreams::iri_string::types::IriString;
|
2022-12-21 22:51:17 +00:00
|
|
|
use std::collections::{BTreeMap, BTreeSet};
|
|
|
|
use time::OffsetDateTime;
|
2022-11-17 19:14:29 +00:00
|
|
|
|
|
|
|
pub mod client;
|
|
|
|
pub mod routes;
|
|
|
|
|
|
|
|
#[derive(serde::Deserialize, serde::Serialize)]
|
|
|
|
pub(crate) struct Domains {
|
|
|
|
domains: Vec<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(serde::Deserialize, serde::Serialize)]
|
|
|
|
pub(crate) struct AllowedDomains {
|
2022-11-17 20:13:41 +00:00
|
|
|
pub(crate) allowed_domains: Vec<String>,
|
2022-11-17 19:14:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(serde::Deserialize, serde::Serialize)]
|
|
|
|
pub(crate) struct BlockedDomains {
|
2022-11-17 20:13:41 +00:00
|
|
|
pub(crate) blocked_domains: Vec<String>,
|
2022-11-17 19:14:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(serde::Deserialize, serde::Serialize)]
|
|
|
|
pub(crate) struct ConnectedActors {
|
2022-11-17 20:13:41 +00:00
|
|
|
pub(crate) connected_actors: Vec<IriString>,
|
2022-11-17 19:14:29 +00:00
|
|
|
}
|
2022-12-21 22:51:17 +00:00
|
|
|
|
|
|
|
#[derive(serde::Deserialize, serde::Serialize)]
|
|
|
|
pub(crate) struct LastSeen {
|
|
|
|
pub(crate) last_seen: BTreeMap<OffsetDateTime, BTreeSet<String>>,
|
|
|
|
pub(crate) never: Vec<String>,
|
|
|
|
}
|