[][src]Struct activitystreams_new::object::ApObject

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

Define activitypub properties for the Object type as described by the Activity Pub vocabulary.

Methods

impl<Inner> ApObject<Inner>[src]

pub fn new(inner: Inner) -> Self where
    Inner: Object
[src]

Create a new ActivityPub Object

use activitystreams_new::object::{ApObject, Place};

let object = ApObject::new(Place::new());

pub fn inner(&self) -> &Inner[src]

Borrow inner

pub fn inner_mut(&mut self) -> &mut Inner[src]

Mutably borrow Inner

Trait Implementations

impl<Inner> Activity for ApObject<Inner> where
    Inner: Activity
[src]

impl<Inner> ActorAndObjectRef for ApObject<Inner> where
    Inner: ActorAndObjectRef
[src]

impl<Inner, Kind> AsActivity<Kind> for ApObject<Inner> where
    Inner: AsActivity<Kind>, 
[src]

impl<Inner> AsApObject<Inner> for ApObject<Inner> where
    Inner: Object
[src]

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

impl<Inner, Kind> AsCollection<Kind> for ApObject<Inner> where
    Inner: AsCollection<Kind>, 
[src]

impl<Inner, Kind> AsCollectionPage<Kind> for ApObject<Inner> where
    Inner: AsCollectionPage<Kind>, 
[src]

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

impl<Inner> AsOrderedCollectionPage for ApObject<Inner> where
    Inner: AsOrderedCollectionPage
[src]

impl<Inner> AsPlace for ApObject<Inner> where
    Inner: AsPlace
[src]

impl<Inner> AsProfile for ApObject<Inner> where
    Inner: AsProfile
[src]

impl<Inner> AsQuestion for ApObject<Inner> where
    Inner: AsQuestion
[src]

impl<Inner> AsRelationship for ApObject<Inner> where
    Inner: AsRelationship
[src]

impl<Inner> AsTombstone for ApObject<Inner> where
    Inner: AsTombstone
[src]

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

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

impl<Inner> Collection for ApObject<Inner> where
    Inner: Collection
[src]

impl<Inner> CollectionPage for ApObject<Inner> where
    Inner: CollectionPage
[src]

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

impl<'de, Inner> Deserialize<'de> for ApObject<Inner> where
    Inner: Deserialize<'de>, 
[src]

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

type Error = Error

The erro produced must be a StdError

impl<Inner> IntransitiveActivity for ApObject<Inner> where
    Inner: IntransitiveActivity
[src]

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

impl<Inner> OptOriginRef for ApObject<Inner> where
    Inner: OptOriginRef
[src]

impl<Inner> OptTargetRef for ApObject<Inner> where
    Inner: OptTargetRef
[src]

impl<Inner> OriginRef for ApObject<Inner> where
    Inner: OriginRef
[src]

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

impl<Inner> TargetRef for ApObject<Inner> where
    Inner: TargetRef
[src]

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T, Kind> ActivityExt<Kind> for T where
    T: AsActivity<Kind>, 
[src]

impl<T> ActorAndObjectRefExt for T where
    T: ActorAndObjectRef
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[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, Kind> CollectionExt<Kind> for T where
    T: AsCollection<Kind>, 
[src]

impl<T, Kind> CollectionPageExt<Kind> for T where
    T: AsCollectionPage<Kind>, 
[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> OptOriginRefExt for T where
    T: OptOriginRef
[src]

impl<T> OptTargetRefExt for T where
    T: OptTargetRef
[src]

impl<T> OrderedCollectionPageExt for T where
    T: AsOrderedCollectionPage
[src]

impl<T> OriginRefExt for T where
    T: OriginRef
[src]

impl<T> PlaceExt for T where
    T: AsPlace
[src]

impl<T> ProfileExt for T where
    T: AsProfile
[src]

impl<T> QuestionExt for T where
    T: AsQuestion
[src]

impl<T> RelationshipExt for T where
    T: AsRelationship
[src]

impl<T> TargetRefExt for T where
    T: TargetRef
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TombstoneExt for T where
    T: AsTombstone
[src]

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]