feat(domain): ActorConnectionSummary, ConnectionType, RemoteActorConnectionRepository, FetchActorConnections event

This commit is contained in:
2026-05-15 00:25:54 +02:00
parent 23501f5203
commit 99dd89b60d
8 changed files with 178 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#[derive(Debug, Clone)]
pub struct ActorConnectionSummary {
pub url: String,
pub handle: String,
pub display_name: Option<String>,
pub avatar_url: Option<String>,
}

View File

@@ -0,0 +1,14 @@
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ConnectionType {
Followers,
Following,
}
impl ConnectionType {
pub fn as_str(&self) -> &'static str {
match self {
Self::Followers => "followers",
Self::Following => "following",
}
}
}

View File

@@ -1,4 +1,6 @@
pub mod actor_connection_summary;
pub mod api_key;
pub mod connection_type;
pub mod feed;
pub mod notification;
pub mod remote_actor;