[−][src]Trait activitystreams::object::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