pub struct Endpoints {
pub shared_inbox: Option<Url>,
pub oauth_authorization_endpoint: Option<Url>,
pub oauth_token_endpoint: Option<Url>,
pub provide_client_key: Option<Url>,
pub sign_client_key: Option<Url>,
pub proxy_url: Option<Url>,
}Expand description
ActivityPub §4.1 endpoints block.
Servers publish auxiliary URLs through this object. The most widely
used field by far is shared_inbox, which
lets remote senders deliver one POST per server instead of one POST
per follower. The OAuth fields support C2S clients (rare in
production today). The proxyUrl and provideClientKey /
signClientKey fields are reserved for Linked Data Signatures and
remain in the spec for forward-compatibility.
Fields§
Server-wide inbox into which any actor on this server can be addressed. Receiving servers MAY deliver a single POST here in place of N per-follower deliveries.
Endpoint where a remote client can obtain an OAuth 2.0 authorization code on behalf of an actor on this server.
oauth_token_endpoint: Option<Url>Endpoint where a remote client can exchange an OAuth 2.0 authorization code for a bearer token.
provide_client_key: Option<Url>LD-Signatures: endpoint that supplies a fresh client key for HTTP-signature exchange.
sign_client_key: Option<Url>LD-Signatures: endpoint that signs an arbitrary client-supplied key on behalf of this actor.
proxy_url: Option<Url>Generic proxy endpoint for fetching authenticated remote
resources, defined for forward-compatibility with
ActivityPub §7.1.2 client-to-server semantics.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Endpoints
impl<'de> Deserialize<'de> for Endpoints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Endpoints
impl StructuralPartialEq for Endpoints
Auto Trait Implementations§
impl Freeze for Endpoints
impl RefUnwindSafe for Endpoints
impl Send for Endpoints
impl Sync for Endpoints
impl Unpin for Endpoints
impl UnsafeUnpin for Endpoints
impl UnwindSafe for Endpoints
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.