Some checks failed
CI / Check / Test (push) Has been cancelled
Reviewed-on: #22
54 lines
1.1 KiB
Rust
54 lines
1.1 KiB
Rust
#[derive(Debug, Clone)]
|
|
pub struct RemoteActorInfo {
|
|
pub url: String,
|
|
pub handle: String,
|
|
pub display_name: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct PendingFollowerInfo {
|
|
pub url: String,
|
|
pub handle: String,
|
|
pub display_name: Option<String>,
|
|
pub avatar_url: Option<String>,
|
|
}
|
|
|
|
pub struct FederationFlags {
|
|
pub goals: bool,
|
|
pub reviews: bool,
|
|
pub watchlist: bool,
|
|
}
|
|
|
|
impl Default for FederationFlags {
|
|
fn default() -> Self {
|
|
Self {
|
|
goals: true,
|
|
reviews: true,
|
|
watchlist: true,
|
|
}
|
|
}
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct FederatedProfile {
|
|
pub actor_url: String,
|
|
pub handle: String,
|
|
pub display_name: Option<String>,
|
|
pub bio: Option<String>,
|
|
pub avatar_url: Option<String>,
|
|
pub banner_url: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct BlockedDomainInfo {
|
|
pub domain: String,
|
|
pub reason: Option<String>,
|
|
pub blocked_at: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct FollowedActorInfo {
|
|
pub url: String,
|
|
pub outbox_url: Option<String>,
|
|
}
|