relay/src/admin.rs

25 lines
587 B
Rust
Raw Normal View History

2022-11-17 19:14:29 +00:00
use activitystreams::iri_string::types::IriString;
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
}