[][src]Struct activitystreams_new::actor::ApActor

pub struct ApActor<Inner> { /* fields omitted */ }

Actor types are Object types that are capable of performing activities.

This specification intentionally defines Actors in only the most generalized way, stopping short of defining semantically specific properties for each. All Actor objects are specializations of Object and inherit all of the core properties common to all Objects. External vocabularies can be used to express additional detail not covered by the Activity Vocabulary. VCard [vcard-rdf SHOULD be used to provide additional metadata for Person, Group, and Organization instances.

While implementations are free to introduce new types of Actors beyond those defined by the Activity Vocabulary, interoperability issues can arise when applications rely too much on extension types that are not recognized by other implementations. Care should be taken to not unduly overlap with or duplicate the existing Actor types.

When an implementation uses an extension type that overlaps with a core vocabulary type, the implementation MUST also specify the core vocabulary type. For instance, some vocabularies (e.g. VCard) define their own types for describing people. An implementation that wishes, for example, to use a vcard:Individual as an Actor MUST also identify that Actor as a Person.


impl<Inner> ApActor<Inner>[src]

pub fn new(inbox: Url, inner: Inner) -> Self where
    Inner: Actor

Create a new ActivityPub Actor

use activitystreams_new::{actor::{ApActor, Person}, uri};

let actor = ApActor::new(

Trait Implementations

impl<Inner> Actor for ApActor<Inner> where
    Inner: Actor

impl<Inner> AsApActor<Inner> for ApActor<Inner> where
    Inner: Actor

impl<Inner1, Inner2> AsApObject<Inner2> for ApActor<Inner1> where
    Inner1: AsApObject<Inner2>, 

impl<Inner, Kind> AsBase<Kind> for ApActor<Inner> where
    Inner: AsBase<Kind>, 

impl<Inner, Kind> AsObject<Kind> for ApActor<Inner> where
    Inner: AsObject<Kind>, 

impl<Inner> Base for ApActor<Inner> where
    Inner: Base

impl<Inner: Clone> Clone for ApActor<Inner>[src]

impl<Inner: Debug> Debug for ApActor<Inner>[src]

impl<'de, Inner> Deserialize<'de> for ApActor<Inner> where
    Inner: Deserialize<'de>, 

impl<Inner, Kind, Error> Extends<Kind> for ApActor<Inner> where
    Inner: Extends<Kind, Error = Error> + UnparsedMut + Actor,
    Error: From<Error> + Error

type Error = Error

The erro produced must be a StdError

impl<Inner> Object for ApActor<Inner> where
    Inner: Object

impl<Inner> Serialize for ApActor<Inner> where
    Inner: Serialize

impl<Inner> UnparsedMut for ApActor<Inner> where
    Inner: UnparsedMut

Auto Trait Implementations

impl<Inner> RefUnwindSafe for ApActor<Inner> where
    Inner: RefUnwindSafe

impl<Inner> Send for ApActor<Inner> where
    Inner: Send

impl<Inner> Sync for ApActor<Inner> where
    Inner: Sync

impl<Inner> Unpin for ApActor<Inner> where
    Inner: Unpin

impl<Inner> UnwindSafe for ApActor<Inner> where
    Inner: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T, Inner> ApActorExt<Inner> for T where
    T: AsApActor<Inner>, 

impl<T, Inner> ApObjectExt<Inner> for T where
    T: AsApObject<Inner>, 

impl<T, Kind> BaseExt<Kind> for T where
    T: AsBase<Kind>, 

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T, Kind> ExtendsExt<Kind> for T where
    T: Extends<Kind>,
    <T as Extends<Kind>>::Error: From<Error>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, Kind> ObjectExt<Kind> for T where
    T: AsObject<Kind>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnparsedMutExt for T where
    T: UnparsedMut