pub trait Actor: Object {
// Required methods
fn inbox(&self) -> &Url;
fn outbox(&self) -> &Url;
fn preferred_username(&self) -> &str;
fn public_key_id(&self) -> &Url;
fn name(&self) -> Option<&str>;
fn shared_inbox(&self) -> Option<&Url>;
// Provided methods
fn canonical_name(&self) -> &str { ... }
fn delivery_inbox<O: DeliverableObject>(&self, obj: &O) -> &Url { ... }
}
Expand description
A type that represents an Actor
Required Methods§
Sourcefn preferred_username(&self) -> &str
fn preferred_username(&self) -> &str
The actor’s preferred username (handle)
Sourcefn public_key_id(&self) -> &Url
fn public_key_id(&self) -> &Url
The actor’s public key ID
The actor’s shared inbox
Provided Methods§
Sourcefn canonical_name(&self) -> &str
fn canonical_name(&self) -> &str
Determine the name of an actor
Sourcefn delivery_inbox<O: DeliverableObject>(&self, obj: &O) -> &Url
fn delivery_inbox<O: DeliverableObject>(&self, obj: &O) -> &Url
Determine which inbox an object should be delievered to
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.