pub struct ActivityActor<Inner> { /* private fields */ }
Expand description

Activity with an actor property

Implementations§

Create a new ActorAndObject Activity

use activitystreams::activity::ActorAndObject;

let activity = ActorAndObject::<String>::new(vec![], vec![]);

Create a new ActorAndObject with None for it’s kind property

This means that no type field will be present in serialized JSON

use activitystreams::activity::ActorAndObject;

let activity = ActorAndObject::<()>::new_none_type(vec![], vec![]);

let s = serde_json::to_string(&activity)?;

assert_eq!(s, r#"{"actor":[],"object":[]}"#);

Deconstruct the ActorAndObject into its parts

use activitystreams::activity::ActorAndObject;

let activity = ActorAndObject::<String>::new(vec![], vec![]);

let (actor, object, activity) = activity.into_parts();

Trait Implementations§

Immutable borrow of Activity<Kind>
Mutable borrow of Activity<Kind>
Immutable borrow of Base<Kind>
Mutable borrow of Base
Immutable borrow of Object<Kind>
Mutable borrow of Object<Kind>
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
The erro produced must be a StdError
Produce an object from the Base
Produce a base from the object
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get a mutable reference to Unparsed

Auto Trait Implementations§

Blanket Implementations§

Fetch the result for the current activity Read more
Set the result for the current activity Read more
Set many results for the current activity Read more
Add a result to the current activity Read more
Take the result from the current activity, leaving nothing Read more
Delete the result from the current activity Read more
Fetch the instrument for the current activity Read more
Set the instrument for the current activity Read more
Set many instruments for the current activity Read more
Add a instrument to the current activity Read more
Take the instrument from the current activity, leaving nothing Read more
Delete the instrument from the current activity Read more
Gets the TypeId of self. Read more
Fetch the actor for the current activity Read more
Fetch the actor for the current activity Read more
Check if the actor’s ID is id Read more
Set the actor for the current activity Read more
Set many actors for the current activity Read more
Add a actor to the current activity Read more
Fetch the object for the current activity Read more
Fetch the object for the current activity Read more
Check if the object’s ID is id Read more
Set the object for the current activity Read more
Set many objects for the current activity Read more
Add a object to the current activity Read more
Fetch the origin for the current activity Read more
Set the origin for the current activity Read more
Set many origins for the current activity Read more
Add a origin to the current activity Read more
Take a origin from the current activity, leaving nothing Read more
Delete a origin from the current activity Read more
Fetch the target for the current activity Read more
Set the target for the current activity Read more
Set many targets for the current activity Read more
Add a target to the current activity Read more
Take a target from the current activity, leaving nothing Read more
Delete a target from the current activity Read more
Fetch the origin for the current activity Read more
Set the origin for the current activity Read more
Set many origins for the current activity Read more
Add a origin to the current activity Read more
Fetch the target for the current activity Read more
Set the target for the current activity Read more
Set many targets for the current activity Read more
Add a target to the current activity Read more
Fetch the context for the current object Read more
Set the context for the current object Read more
Set many contexts for the current object Read more
Add a context to the current object Read more
Take the context from the current object, leaving nothing Read more
Delete the context from the current object Read more
Check the authority of a given IRI matches this object’s ID Read more
Fetch the id for the current object Read more
Fetch the id for the current object Read more
Mutably borrow the ID from the current object Read more
Mutably borrow the ID from the current object Read more
Check if the provided id is equal to the object’s id Read more
Set the id for the current object Read more
Take the id from the current object, leaving nothing Read more
Delete the id from the current object Read more
Fetch the kind for the current object Read more
Check if the provided Kind is equal to the object’s Kind Read more
Set the kind for the current object Read more
Take the kind from the current object, leaving nothing Read more
Delete the kind from the current object Read more
Fetch the name for the current object Read more
Set the name for the current object Read more
Set many names for the current object Read more
Add a name to the current object Read more
Take the name from the current object, leaving nothing Read more
Delete the name from the current object Read more
Fetch the media type for the current object Read more
Set the media type for the current object Read more
Take the media type from the current object, leaving nothing Read more
Delete the media type from the current object Read more
Fetch the preview for the current object Read more
Set the preview for the current object Read more
Set many previews for the current object Read more
Add a preview to the current object Read more
Take the preview from the current object, leaving nothing Read more
Delete the preview from the current object Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Fetch the attachment for the current object Read more
Set the attachment for the current object Read more
Set many attachments for the current object Read more
Add a attachment to the current object Read more
Take the attachment from the current object, leaving nothing Read more
Delete the attachment from the current object Read more
Fetch the attributed_to for the current object Read more
Set the attributed_to for the current object Read more
Set many attributed_tos for the current object Read more
Add a attributed_to to the current object Read more
Take the attributed_to from the current object, leaving nothing Read more
Delete the attributed_to from the current object Read more
Fetch the audience for the current object Read more
Set the audience for the current object Read more
This overwrites the contents of audience Read more
Add a audience to the current object Read more
Take the audience from the current object, leaving nothing Read more
Delete the audience from the current object Read more
Fetch the content for the current object Read more
Set the content for the current object Read more
Set many contents for the current object Read more
Add a content to the current object Read more
Take the content from the current object, leaving nothing Read more
Delete the content from the current object Read more
Fetch the summary for the current object Read more
Set the summary for the current object Read more
Set many summaries for the current object Read more
Add a summary to the current object Read more
Take the summary from the current object, leaving nothing Read more
Delete the summary from the current object Read more
Fetch the url for the current object Read more
Set the url for the current object Read more
Set many urls for the current object Read more
Add a url to the current object Read more
Take the url from the current object, leaving nothing Read more
Delete the url from the current object Read more
Fetch the generator for the current object Read more
Set the generator for the current object Read more
Set many generators for the current object Read more
Add a generator to the current object Read more
Take the generator from the current object, leaving nothing Read more
Delete the generator from the current object Read more
Fetch the icon for the current object Read more
Set the icon for the current object Read more
Set many icons for the current object Read more
Add a icon to the current object Read more
Take the icon from the current object, leaving nothing Read more
Delete the icon from the current object Read more
Fetch the image for the current object Read more
Set the image for the current object Read more
Set many images for the current object Read more
Add a image to the current object Read more
Take the image from the current object, leaving nothing Read more
Delete the image from the current object Read more
Fetch the location for the current object Read more
Set the location for the current object Read more
Set many locations for the current object Read more
Add a location to the current object Read more
Take the location from the current object, leaving nothing Read more
Delete the location from the current object Read more
Fetch the tag for the current object Read more
Set the tag for the current object Read more
Set many tags for the current object Read more
Add a tag to the current object Read more
Take the tag from the current object, leaving nothing Read more
Delete the tag from the current object Read more
Fetch the start_time for the current object Read more
Set the start_time for the current object Read more
Take the start_time from the current object, leaving nothing Read more
Delete the start_time from the current object Read more
Fetch the end_time for the current object Read more
Set the end_time for the current object Read more
Take the end_time from the current object, leaving nothing Read more
Delete the end_time from the current object Read more
Fetch the duration for the current object Read more
Set the duration for the current object Read more
Take the duration from the current object, leaving nothing Read more
Delete the duration from the current object Read more
Fetch the published for the current object Read more
Set the published for the current object Read more
Take the published from the current object, leaving nothing Read more
Delete the published from the current object Read more
Fetch the updated for the current object Read more
Set the updated for the current object Read more
Take the updated from the current object, leaving nothing Read more
Delete the updated from the current object Read more
Fetch the in_reply_to for the current object Read more
Set the in_reply_to for the current object Read more
Set many in_reply_tos for the current object Read more
Add a in_reply_to to the current object Read more
Take the in_reply_to from the current object, leaving nothing Read more
Delete the in_reply_to from the current object Read more
Fetch the replies for the current object Read more
Set the replies for the current object Read more
Set many replies for the current object Read more
Add a replies to the current object Read more
Take the replies from the current object, leaving nothing Read more
Delete the replies from the current object Read more
Fetch the to for the current object Read more
Set the to for the current object Read more
Set many tos for the current object Read more
Add a to to the current object Read more
Take the to from the current object, leaving nothing Read more
Delete the to from the current object Read more
Fetch the bto for the current object Read more
Set the bto for the current object Read more
Set many btos for the current object Read more
Add a bto to the current object Read more
Take the bto from the current object, leaving nothing Read more
Delete the bto from the current object Read more
Fetch the cc for the current object Read more
Set the cc for the current object Read more
Set many ccs for the current object Read more
Add a cc to the current object Read more
Take the cc from the current object, leaving nothing Read more
Delete the cc from the current object Read more
Fetch the bcc for the current object Read more
Set the bcc for the current object Read more
Set many bcc for the current object Read more
Add a bcc to the current object Read more
Take the bcc from the current object, leaving nothing Read more
Delete the bcc from the current object Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Remove a value from the Unparsed struct, provided it matches the expected type
Insert a value into the Unparsed struct if the value isn’t Null