+
+impl ActorType for UserOrCommunity {
+ fn actor_id(&self) -> Url {
+ match self {
+ UserOrCommunity::User(u) => u.actor_id(),
+ UserOrCommunity::Community(c) => c.actor_id(),
+ }
+ }
+
+ fn private_key(&self) -> Option<String> {
+ match self {
+ UserOrCommunity::User(u) => u.private_key(),
+ UserOrCommunity::Community(c) => c.private_key(),
+ }
+ }
+}