diff --git a/src/apub.rs b/src/apub.rs index 0f019c6..7b1367a 100644 --- a/src/apub.rs +++ b/src/apub.rs @@ -81,17 +81,9 @@ pub struct AcceptedActors { pub inbox: XsdAnyUri, - pub endpoints: Endpoints, - pub public_key: PublicKey, } -#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] -#[serde(rename_all = "camelCase")] -pub struct Endpoints { - shared_inbox: Option, -} - impl PublicKey { pub fn to_ext(self) -> PublicKeyExtension { self.into() @@ -182,6 +174,6 @@ impl ValidObjects { impl AcceptedActors { pub fn inbox(&self) -> &XsdAnyUri { - self.endpoints.shared_inbox.as_ref().unwrap_or(&self.inbox) + &self.inbox } }