[][src]Struct activitystreams_new::object::Object

pub struct Object<Kind> { /* fields omitted */ }

Describes an object of any kind.

The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection.

Methods

impl<Kind> Object<Kind>[src]

pub fn new() -> Self where
    Kind: Default
[src]

Create a new Object

use activitystreams_new::object::Object;

let object = Object::<String>::new();

Trait Implementations

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

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

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

impl<Kind: Clone> Clone for Object<Kind>[src]

impl<Kind: Debug> Debug for Object<Kind>[src]

impl<'de, Kind> Deserialize<'de> for Object<Kind> where
    Kind: Deserialize<'de>, 
[src]

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

type Error = Error

The erro produced must be a StdError

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

impl<Kind> Serialize for Object<Kind> where
    Kind: Serialize
[src]

impl<Kind> TryFrom<Activity<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<ActorAndObject<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<ActorAndObjectOptOriginAndTarget<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<ActorAndObjectOptTarget<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Arrive> for Object<ArriveType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Base<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Collection<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<CollectionPage<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Delete> for Object<DeleteType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Invite> for Object<InviteType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<ArriveType>> for Arrive[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<DeleteType>> for Delete[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<InviteType>> for Invite[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for Activity<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for ActorAndObject<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for ActorAndObjectOptOriginAndTarget<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for ActorAndObjectOptTarget<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for Collection<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for CollectionPage<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for Base<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<OrderedCollectionPageType>> for OrderedCollectionPage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<PlaceType>> for Place[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<ProfileType>> for Profile[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<QuestionType>> for Question[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<RelationshipType>> for Relationship[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<TombstoneType>> for Tombstone[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<TravelType>> for Travel[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<OrderedCollectionPage> for Object<OrderedCollectionPageType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Place> for Object<PlaceType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Profile> for Object<ProfileType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Question> for Object<QuestionType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Relationship> for Object<RelationshipType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Tombstone> for Object<TombstoneType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Travel> for Object<TravelType>[src]

type Error = Error

The type returned in the event of a conversion error.

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

Auto Trait Implementations

impl<Kind> RefUnwindSafe for Object<Kind> where
    Kind: RefUnwindSafe

impl<Kind> Send for Object<Kind> where
    Kind: Send

impl<Kind> Sync for Object<Kind> where
    Kind: Sync

impl<Kind> Unpin for Object<Kind> where
    Kind: Unpin

impl<Kind> UnwindSafe for Object<Kind> where
    Kind: UnwindSafe

Blanket Implementations

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