[][src]Struct activitystreams::activity::properties::ActivityProperties

pub struct ActivityProperties {
    pub result: Option<ActivityPropertiesResultEnum>,
    pub instrument: Option<ActivityPropertiesInstrumentEnum>,
}

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<ActivityPropertiesResultEnum>

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<ActivityPropertiesInstrumentEnum>

Identifies one or more objects used (or to be used) in the completion of an Activity.

  • Range: Object | Link
  • Funcitonal: false

Implementations

impl ActivityProperties[src]

pub fn get_result_xsd_any_uri(&self) -> Option<&XsdAnyUri>[src]

Get result as a XsdAnyUri

This returns None if

  • There is no value present
  • There is more than one value present
  • The requested type is not stored type

pub fn set_result_xsd_any_uri<T>(
    &mut self,
    item: T
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
    T: TryInto<XsdAnyUri>, 
[src]

Set result from a value that can be converted into XsdAnyUri

pub fn get_many_result_xsd_any_uris(
    &self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
[src]

Get result as a slice of ActivityPropertiesResultTermEnums

This returns None if

  • There is no value present
  • There is only one value present

pub fn set_many_result_xsd_any_uris<T>(
    &mut self,
    item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
    T: TryInto<XsdAnyUri>, 
[src]

Set result from a vec of items that can be converted into XsdAnyUris

pub fn get_result_base_box(&self) -> Option<&BaseBox>[src]

Get result as a BaseBox

This returns None if

  • There is no value present
  • There is more than one value present
  • The requested type is not stored type

pub fn set_result_base_box<T>(
    &mut self,
    item: T
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
    T: TryInto<BaseBox>, 
[src]

Set result from a value that can be converted into BaseBox

pub fn get_many_result_base_boxes(
    &self
) -> Option<impl Iterator<Item = &BaseBox>>
[src]

Get result as a slice of ActivityPropertiesResultTermEnums

This returns None if

  • There is no value present
  • There is only one value present

pub fn set_many_result_base_boxes<T>(
    &mut self,
    item: Vec<T>
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
    T: TryInto<BaseBox>, 
[src]

Set result from a vec of items that can be converted into BaseBoxs

pub fn delete_result(&mut self) -> &mut Self[src]

Set the result field to None

pub fn get_instrument_xsd_any_uri(&self) -> Option<&XsdAnyUri>[src]

Get instrument as a XsdAnyUri

This returns None if

  • There is no value present
  • There is more than one value present
  • The requested type is not stored type

pub fn set_instrument_xsd_any_uri<T>(
    &mut self,
    item: T
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
    T: TryInto<XsdAnyUri>, 
[src]

Set instrument from a value that can be converted into XsdAnyUri

pub fn get_many_instrument_xsd_any_uris(
    &self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
[src]

Get instrument as a slice of ActivityPropertiesInstrumentTermEnums

This returns None if

  • There is no value present
  • There is only one value present

pub fn set_many_instrument_xsd_any_uris<T>(
    &mut self,
    item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
    T: TryInto<XsdAnyUri>, 
[src]

Set instrument from a vec of items that can be converted into XsdAnyUris

pub fn get_instrument_base_box(&self) -> Option<&BaseBox>[src]

Get instrument as a BaseBox

This returns None if

  • There is no value present
  • There is more than one value present
  • The requested type is not stored type

pub fn set_instrument_base_box<T>(
    &mut self,
    item: T
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
    T: TryInto<BaseBox>, 
[src]

Set instrument from a value that can be converted into BaseBox

pub fn get_many_instrument_base_boxes(
    &self
) -> Option<impl Iterator<Item = &BaseBox>>
[src]

Get instrument as a slice of ActivityPropertiesInstrumentTermEnums

This returns None if

  • There is no value present
  • There is only one value present

pub fn set_many_instrument_base_boxes<T>(
    &mut self,
    item: Vec<T>
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
    T: TryInto<BaseBox>, 
[src]

Set instrument from a vec of items that can be converted into BaseBoxs

pub fn delete_instrument(&mut self) -> &mut Self[src]

Set the instrument field to None

Trait Implementations

impl AsMut<ActivityProperties> for Accept[src]

impl AsMut<ActivityProperties> for Add[src]

impl AsMut<ActivityProperties> for Follow[src]

impl AsMut<ActivityProperties> for Ignore[src]

impl AsMut<ActivityProperties> for Invite[src]

impl AsMut<ActivityProperties> for Join[src]

impl AsMut<ActivityProperties> for Leave[src]

impl AsMut<ActivityProperties> for Like[src]

impl AsMut<ActivityProperties> for Listen[src]

impl AsMut<ActivityProperties> for Offer[src]

impl AsMut<ActivityProperties> for Question[src]

impl AsMut<ActivityProperties> for Read[src]

impl AsMut<ActivityProperties> for AMove[src]

impl AsMut<ActivityProperties> for Reject[src]

impl AsMut<ActivityProperties> for Remove[src]

impl AsMut<ActivityProperties> for TentativeAccept[src]

impl AsMut<ActivityProperties> for TentativeReject[src]

impl AsMut<ActivityProperties> for Travel[src]

impl AsMut<ActivityProperties> for Undo[src]

impl AsMut<ActivityProperties> for Update[src]

impl AsMut<ActivityProperties> for View[src]

impl AsMut<ActivityProperties> for Announce[src]

impl AsMut<ActivityProperties> for Arrive[src]

impl AsMut<ActivityProperties> for Block[src]

impl AsMut<ActivityProperties> for Create[src]

impl AsMut<ActivityProperties> for Delete[src]

impl AsMut<ActivityProperties> for Dislike[src]

impl AsMut<ActivityProperties> for Flag[src]

impl AsRef<ActivityProperties> for Accept[src]

impl AsRef<ActivityProperties> for Add[src]

impl AsRef<ActivityProperties> for Follow[src]

impl AsRef<ActivityProperties> for Ignore[src]

impl AsRef<ActivityProperties> for Invite[src]

impl AsRef<ActivityProperties> for Join[src]

impl AsRef<ActivityProperties> for Leave[src]

impl AsRef<ActivityProperties> for Like[src]

impl AsRef<ActivityProperties> for Listen[src]

impl AsRef<ActivityProperties> for Offer[src]

impl AsRef<ActivityProperties> for Question[src]

impl AsRef<ActivityProperties> for Read[src]

impl AsRef<ActivityProperties> for AMove[src]

impl AsRef<ActivityProperties> for Reject[src]

impl AsRef<ActivityProperties> for Remove[src]

impl AsRef<ActivityProperties> for TentativeAccept[src]

impl AsRef<ActivityProperties> for TentativeReject[src]

impl AsRef<ActivityProperties> for Travel[src]

impl AsRef<ActivityProperties> for Undo[src]

impl AsRef<ActivityProperties> for Update[src]

impl AsRef<ActivityProperties> for View[src]

impl AsRef<ActivityProperties> for Announce[src]

impl AsRef<ActivityProperties> for Arrive[src]

impl AsRef<ActivityProperties> for Block[src]

impl AsRef<ActivityProperties> for Create[src]

impl AsRef<ActivityProperties> for Delete[src]

impl AsRef<ActivityProperties> for Dislike[src]

impl AsRef<ActivityProperties> for Flag[src]

impl Clone for ActivityProperties[src]

impl Debug for ActivityProperties[src]

impl Default for ActivityProperties[src]

impl<'de> Deserialize<'de> for ActivityProperties[src]

impl Serialize for ActivityProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.