[][src]Trait activitystreams::object::Object

pub trait Object: Debug + Serialize + Deserialize {
    fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn duplicate(&self) -> Box<dyn Object>; }

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.

Required methods

fn as_any(&self) -> &dyn Any

Provide an as_any method to allow for borrowed downcasting.

This is useful since Objects can be deserialized generically via typetag

fn as_any_mut(&mut self) -> &mut dyn Any

Provide an as_any method to allow for mutably borrowed downcasting.

This is useful since Objects can be deserialized generically via typetag

fn duplicate(&self) -> Box<dyn Object>

Provide a duplicate method to allow for cloning type objects.

This is useful since Objects can be deserialized generically via typetag

Loading content...

Trait Implementations

impl<'typetag> Serialize for dyn Object + 'typetag[src]

impl<'typetag> Serialize for dyn Object + Send + 'typetag[src]

impl<'typetag> Serialize for dyn Object + Sync + 'typetag[src]

impl<'typetag> Serialize for dyn Object + Send + Sync + 'typetag[src]

impl Strictest for dyn Object[src]

type Object = dyn Object

Implementors

impl Object for AMove[src]

impl Object for Accept[src]

impl Object for Add[src]

impl Object for Announce[src]

impl Object for Arrive[src]

impl Object for Block[src]

impl Object for Create[src]

impl Object for Delete[src]

impl Object for Dislike[src]

impl Object for Flag[src]

impl Object for Follow[src]

impl Object for Ignore[src]

impl Object for Invite[src]

impl Object for Join[src]

impl Object for Leave[src]

impl Object for Like[src]

impl Object for Listen[src]

impl Object for Offer[src]

impl Object for Question[src]

impl Object for Read[src]

impl Object for Reject[src]

impl Object for Remove[src]

impl Object for TentativeAccept[src]

impl Object for TentativeReject[src]

impl Object for Travel[src]

impl Object for Undo[src]

impl Object for Update[src]

impl Object for View[src]

impl Object for Application[src]

impl Object for Group[src]

impl Object for Organization[src]

impl Object for Person[src]

impl Object for Service[src]

impl Object for OrderedCollection[src]

impl Object for OrderedCollectionPage[src]

impl Object for UnorderedCollection[src]

impl Object for UnorderedCollectionPage[src]

impl Object for Article[src]

impl Object for Audio[src]

impl Object for Document[src]

impl Object for Event[src]

impl Object for Image[src]

impl Object for Note[src]

impl Object for Page[src]

impl Object for Place[src]

impl Object for Profile[src]

impl Object for Relationship[src]

impl Object for Tombstone[src]

impl Object for Video[src]

Loading content...