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

pub struct ActorAndObjectProperties {
    pub actor: ActorAndObjectPropertiesActorEnum,
    pub object: ActorAndObjectPropertiesObjectEnum,
}

Struct with actor and object properties

Fields

actor: ActorAndObjectPropertiesActorEnum

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: ActorAndObjectPropertiesObjectEnum

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

Implementations

impl ActorAndObjectProperties[src]

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

Get the actor as a XsdAnyUri

This returns None if

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

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

Set actor with a value that can be converted into XsdAnyUri

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

Get actor as a vec of &XsdAnyUris

This returns None if

  • There is only one value present

The returned vec will be empty if no values match the requested type, but values are present.

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

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

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

Get the actor as a BaseBox

This returns None if

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

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

Set actor with a value that can be converted into BaseBox

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

Get actor as a vec of &BaseBoxs

This returns None if

  • There is only one value present

The returned vec will be empty if no values match the requested type, but values are present.

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

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

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

Get the object as a XsdAnyUri

This returns None if

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

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

Set object with a value that can be converted into XsdAnyUri

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

Get object as a vec of &XsdAnyUris

This returns None if

  • There is only one value present

The returned vec will be empty if no values match the requested type, but values are present.

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

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

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

Get the object as a BaseBox

This returns None if

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

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

Set object with a value that can be converted into BaseBox

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

Get object as a vec of &BaseBoxs

This returns None if

  • There is only one value present

The returned vec will be empty if no values match the requested type, but values are present.

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

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

Trait Implementations

impl AsMut<ActorAndObjectProperties> for Accept[src]

impl AsMut<ActorAndObjectProperties> for Add[src]

impl AsMut<ActorAndObjectProperties> for Like[src]

impl AsMut<ActorAndObjectProperties> for Listen[src]

impl AsMut<ActorAndObjectProperties> for Read[src]

impl AsMut<ActorAndObjectProperties> for Reject[src]

impl AsMut<ActorAndObjectProperties> for TentativeAccept[src]

impl AsMut<ActorAndObjectProperties> for TentativeReject[src]

impl AsMut<ActorAndObjectProperties> for Undo[src]

impl AsMut<ActorAndObjectProperties> for Update[src]

impl AsMut<ActorAndObjectProperties> for View[src]

impl AsMut<ActorAndObjectProperties> for Block[src]

impl AsMut<ActorAndObjectProperties> for Create[src]

impl AsMut<ActorAndObjectProperties> for Dislike[src]

impl AsMut<ActorAndObjectProperties> for Flag[src]

impl AsMut<ActorAndObjectProperties> for Follow[src]

impl AsMut<ActorAndObjectProperties> for Ignore[src]

impl AsMut<ActorAndObjectProperties> for Join[src]

impl AsMut<ActorAndObjectProperties> for Leave[src]

impl AsRef<ActorAndObjectProperties> for Accept[src]

impl AsRef<ActorAndObjectProperties> for Add[src]

impl AsRef<ActorAndObjectProperties> for Like[src]

impl AsRef<ActorAndObjectProperties> for Listen[src]

impl AsRef<ActorAndObjectProperties> for Read[src]

impl AsRef<ActorAndObjectProperties> for Reject[src]

impl AsRef<ActorAndObjectProperties> for TentativeAccept[src]

impl AsRef<ActorAndObjectProperties> for TentativeReject[src]

impl AsRef<ActorAndObjectProperties> for Undo[src]

impl AsRef<ActorAndObjectProperties> for Update[src]

impl AsRef<ActorAndObjectProperties> for View[src]

impl AsRef<ActorAndObjectProperties> for Block[src]

impl AsRef<ActorAndObjectProperties> for Create[src]

impl AsRef<ActorAndObjectProperties> for Dislike[src]

impl AsRef<ActorAndObjectProperties> for Flag[src]

impl AsRef<ActorAndObjectProperties> for Follow[src]

impl AsRef<ActorAndObjectProperties> for Ignore[src]

impl AsRef<ActorAndObjectProperties> for Join[src]

impl AsRef<ActorAndObjectProperties> for Leave[src]

impl Clone for ActorAndObjectProperties[src]

impl Debug for ActorAndObjectProperties[src]

impl Default for ActorAndObjectProperties[src]

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

impl Serialize for ActorAndObjectProperties[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.