[][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.

Methods

impl<Inner> ApActor<Inner>[src]

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

Create a new ActivityPub Actor

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

let actor = ApActor::new(
    uri!("https://example.com/inbox"),
    Person::new(),
);

Trait Implementations

impl<Inner> Actor for ApActor<Inner> where
    Inner: Actor
[src]

impl<Inner> AsApActor<Inner> for ApActor<Inner> where
    Inner: Actor
[src]

impl<Inner1, Inner2> AsApObject<Inner2> for ApActor<Inner1> where
    Inner1: AsApObject<Inner2>, 
[src]

impl<Inner, Kind> AsBase<Kind> for ApActor<Inner> where
    Inner: AsBase<Kind>, 
[src]

impl<Inner, Kind> AsObject<Kind> for ApActor<Inner> where
    Inner: AsObject<Kind>, 
[src]

impl<Inner> Base for ApActor<Inner> where
    Inner: Base
[src]

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>, 
[src]

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

type Error = Error

The erro produced must be a StdError

impl<Inner> Object for ApActor<Inner> where
    Inner: Object
[src]

impl<Inner> Serialize for ApActor<Inner> where
    Inner: Serialize
[src]

impl<Inner> UnparsedMut for ApActor<Inner> where
    Inner: UnparsedMut
[src]

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
[src]

impl<T, Inner> ApActorExt<Inner> for T where
    T: AsApActor<Inner>, 
[src]

impl<T, Inner> ApObjectExt<Inner> for T where
    T: AsApObject<Inner>, 
[src]

impl<T, Kind> BaseExt<Kind> for T where
    T: AsBase<Kind>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Kind> ObjectExt<Kind> for T where
    T: AsObject<Kind>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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
[src]