Struct activitystreams::activity::properties::ActorAndObjectOptOthers
[−]
[src]
pub struct ActorAndObjectOptOthers { pub actor: Value, pub object: Value, pub origin: Option<Value>, pub target: Option<Value>, }
Struct with actor
, object
, and optional origin
and target
properties
Fields
actor: Value
Describes one or more entities that either performed or are expected to perform the activity.
Any single activity can have multiple actors. The actor MAY be specified using an indirect Link.
- Range:
Object
|Link
- Functional: false
object: Value
When used within an Activity, describes the direct object of the activity.
For instance, in the activity "John added a movie to his wishlist", the object of the activity is the movie added.
- Range:
Object
|Link
- Functional: false
origin: Option<Value>
Describes an indirect object of the activity from which the activity is directed.
The precise meaning of the origin is the object of the English preposition "from". For instance, in the activity "John moved an item to List B from List A", the origin of the activity is "List A".
- Range:
Object
|Link
- Functional: false
target: Option<Value>
Describes the indirect object, or target, of the activity.
The precise meaning of the target is largely dependent on the type of action being described but will often be the object of the English preposition "to". For instance, in the activity "John added a movie to his wishlist", the target of the activity is John's wishlist. An activity can have more than one target
- Range:
Object
|Link
- Functional: false
Methods
impl ActorAndObjectOptOthers
[src]
pub fn actor_object<T>(&self) -> Result<T, Error> where
T: Object,
[src]
T: Object,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_actor_object<T>(&mut self, item: T) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn actor_object_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Object,
[src]
T: Object,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_actor_object_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn actor_link<T>(&self) -> Result<T, Error> where
T: Link,
[src]
T: Link,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_actor_link<T>(&mut self, item: T) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn actor_link_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Link,
[src]
T: Link,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_actor_link_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn object_object<T>(&self) -> Result<T, Error> where
T: Object,
[src]
T: Object,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_object_object<T>(&mut self, item: T) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn object_object_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Object,
[src]
T: Object,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_object_object_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn object_link<T>(&self) -> Result<T, Error> where
T: Link,
[src]
T: Link,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_object_link<T>(&mut self, item: T) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn object_link_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Link,
[src]
T: Link,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::Deserialize
pub fn set_object_link_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn origin_object<T>(&self) -> Result<T, Error> where
T: Object,
[src]
T: Object,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_origin_object<T>(&mut self, item: T) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn origin_object_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Object,
[src]
T: Object,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_origin_object_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn origin_link<T>(&self) -> Result<T, Error> where
T: Link,
[src]
T: Link,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_origin_link<T>(&mut self, item: T) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn origin_link_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Link,
[src]
T: Link,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_origin_link_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn target_object<T>(&self) -> Result<T, Error> where
T: Object,
[src]
T: Object,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_target_object<T>(&mut self, item: T) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn target_object_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Object,
[src]
T: Object,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_target_object_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Object,
[src]
T: Object,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn target_link<T>(&self) -> Result<T, Error> where
T: Link,
[src]
T: Link,
Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_target_link<T>(&mut self, item: T) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn target_link_vec<T>(&self) -> Result<Vec<T>, Error> where
T: Link,
[src]
T: Link,
Retrieve many values of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound
and
Error::Deserialize
pub fn set_target_link_vec<T>(&mut self, item: Vec<T>) -> Result<(), Error> where
T: Link,
[src]
T: Link,
Set many values of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
Trait Implementations
impl<'de> Deserialize<'de> for ActorAndObjectOptOthers
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ActorAndObjectOptOthers, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<ActorAndObjectOptOthers, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ActorAndObjectOptOthers
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Clone for ActorAndObjectOptOthers
[src]
fn clone(&self) -> ActorAndObjectOptOthers
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ActorAndObjectOptOthers
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Default for ActorAndObjectOptOthers
[src]
fn default() -> ActorAndObjectOptOthers
[src]
Returns the "default value" for a type. Read more