pub trait ActorDocument: Send + Sync {
// Required method
fn actor_json(&self, base_url: &str) -> Value;
}Expand description
Source of the ActivityPub actor document served at
GET /profile/card.jsonld for activity+json requests.
Required Methods§
Sourcefn actor_json(&self, base_url: &str) -> Value
fn actor_json(&self, base_url: &str) -> Value
The actor JSON for the site at base_url (scheme://host).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".