Struct activitystreams_types::activity::properties::ActivityProperties [−][src]
Activity objects are specializations of the base Object type that provide information about actions that have either already occurred, are in the process of occurring, or may occur in the future.
Fields
result: Option<Value>
Describes the result of the activity.
For instance, if a particular action results in the creation of a new resource, the result property can be used to describe that new resource.
- Range:
Object
|Link
- Funcitonal: false
instrument: Option<Value>
Identifies one or more objects used (or to be used) in the completion of an Activity
.
- Range:
Object
|Link
- Funcitonal: false
Methods
impl ActivityProperties
[src]
impl ActivityProperties
pub fn result_object<T: Object>(&self) -> Result<T>
[src]
pub fn result_object<T: Object>(&self) -> Result<T>
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_result_object<T: Object>(&mut self, item: T) -> Result<()>
[src]
pub fn set_result_object<T: Object>(&mut self, item: T) -> Result<()>
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 result_object_vec<T: Object>(&self) -> Result<Vec<T>>
[src]
pub fn result_object_vec<T: Object>(&self) -> Result<Vec<T>>
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_result_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>
[src]
pub fn set_result_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>
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 result_link<T: Link>(&self) -> Result<T>
[src]
pub fn result_link<T: Link>(&self) -> Result<T>
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_result_link<T: Link>(&mut self, item: T) -> Result<()>
[src]
pub fn set_result_link<T: Link>(&mut self, item: T) -> Result<()>
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 result_link_vec<T: Link>(&self) -> Result<Vec<T>>
[src]
pub fn result_link_vec<T: Link>(&self) -> Result<Vec<T>>
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_result_link_vec<T: Link>(&mut self, item: Vec<T>) -> Result<()>
[src]
pub fn set_result_link_vec<T: Link>(&mut self, item: Vec<T>) -> Result<()>
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 instrument_object<T: Object>(&self) -> Result<T>
[src]
pub fn instrument_object<T: Object>(&self) -> Result<T>
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_instrument_object<T: Object>(&mut self, item: T) -> Result<()>
[src]
pub fn set_instrument_object<T: Object>(&mut self, item: T) -> Result<()>
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 instrument_object_vec<T: Object>(&self) -> Result<Vec<T>>
[src]
pub fn instrument_object_vec<T: Object>(&self) -> Result<Vec<T>>
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_instrument_object_vec<T: Object>(
&mut self,
item: Vec<T>
) -> Result<()>
[src]
pub fn set_instrument_object_vec<T: Object>(
&mut self,
item: Vec<T>
) -> Result<()>
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 instrument_link<T: Link>(&self) -> Result<T>
[src]
pub fn instrument_link<T: Link>(&self) -> Result<T>
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_instrument_link<T: Link>(&mut self, item: T) -> Result<()>
[src]
pub fn set_instrument_link<T: Link>(&mut self, item: T) -> Result<()>
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 instrument_link_vec<T: Link>(&self) -> Result<Vec<T>>
[src]
pub fn instrument_link_vec<T: Link>(&self) -> Result<Vec<T>>
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_instrument_link_vec<T: Link>(&mut self, item: Vec<T>) -> Result<()>
[src]
pub fn set_instrument_link_vec<T: Link>(&mut self, item: Vec<T>) -> Result<()>
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 Clone for ActivityProperties
[src]
impl Clone for ActivityProperties
fn clone(&self) -> ActivityProperties
[src]
fn clone(&self) -> ActivityProperties
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ActivityProperties
[src]
impl Debug for ActivityProperties
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for ActivityProperties
[src]
impl Default for ActivityProperties
fn default() -> ActivityProperties
[src]
fn default() -> ActivityProperties
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for ActivityProperties
impl Send for ActivityProperties
impl Sync for ActivityProperties
impl Sync for ActivityProperties