[−][src]Module activitystreams::actor
Types and traits for dealing with Actor attributes
use activitystreams::{ actor::{ApActor, Person}, prelude::*, uri, }; let mut person = ApActor::new( uri!("https://example.com/actor/inbox"), Person::new(), ); person .set_outbox(uri!("https://example.com/actor/outbox")) .set_following(uri!("https://example.com/actor/following")) .set_followers(uri!("https://example.com/actor/followers"));
Modules
kind | Kinds of actors defined by the spec |
Structs
Actor | A simple type to create an Actor out of any Object |
ApActor | Actor types are Object types that are capable of performing activities. |
Endpoints | A json object which maps additional (typically server/domain-wide) endpoints which may be useful either for this actor or someone referencing this actor. |
Traits
ApActorExt | Helper methods for interacting with ActivityPub Actor types |
AsApActor | Implementation trait for deriving ActivityPub Actor methods for a type |
Type Definitions
Application | Describes a software application. |
Group | Represents a formal or informal collective of Actors. |
Organization | Represents an organization. |
Person | Represents an individual person. |
Service | Represents a service of any kind. |