2 use lemmy_db_schema::source::person::Person;
5 impl ActorType for Person {
6 fn is_local(&self) -> bool {
9 fn actor_id(&self) -> Url {
10 self.actor_id.to_owned().into_inner()
12 fn name(&self) -> String {
16 fn public_key(&self) -> Option<String> {
17 self.public_key.to_owned()
20 fn private_key(&self) -> Option<String> {
21 self.private_key.to_owned()
24 fn get_shared_inbox_or_inbox_url(&self) -> Url {
28 .unwrap_or_else(|| self.inbox_url.to_owned())