[][src]Trait activitystreams_new::base::Extends

pub trait Extends<Kind>: Sized {
    type Error: Error;
    fn extends(base: Base<Kind>) -> Result<Self, Self::Error>;
fn retracts(self) -> Result<Base<Kind>, Self::Error>; }

Implements conversion between Base<Kind> and other ActivityStreams objects defined in this crate

Associated Types

type Error: Error

The erro produced must be a StdError

Loading content...

Required methods

fn extends(base: Base<Kind>) -> Result<Self, Self::Error>

Produce an object from the Base

fn retracts(self) -> Result<Base<Kind>, Self::Error>

Produce a base from the object

Loading content...

Implementors

impl Extends<ArriveType> for Arrive[src]

type Error = Error

impl Extends<DeleteType> for Delete[src]

type Error = Error

impl Extends<InviteType> for Invite[src]

type Error = Error

impl Extends<QuestionType> for Question[src]

type Error = Error

impl Extends<TravelType> for Travel[src]

type Error = Error

impl Extends<OrderedCollectionPageType> for OrderedCollectionPage[src]

impl Extends<PlaceType> for Place[src]

type Error = Error

impl Extends<ProfileType> for Profile[src]

type Error = Error

impl Extends<RelationshipType> for Relationship[src]

impl Extends<TombstoneType> for Tombstone[src]

type Error = Error

impl<Inner, Kind> Extends<Kind> for ApObject<Inner> where
    Inner: Extends<Kind, Error = Error> + UnparsedMut + Object
[src]

type Error = Error

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

impl<Kind> Extends<Kind> for Activity<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for ActorAndObject<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for ActorAndObjectOptOriginAndTarget<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for ActorAndObjectOptTarget<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for Actor<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for Collection<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for CollectionPage<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for Link<Kind>[src]

type Error = Error

impl<Kind> Extends<Kind> for Object<Kind>[src]

type Error = Error

Loading content...