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

pub struct ActorObjectAndTargetProperties {
    pub actor: ActorObjectAndTargetPropertiesActorEnum,
    pub object: ActorObjectAndTargetPropertiesObjectEnum,
    pub target: ActorObjectAndTargetPropertiesTargetEnum,
}

Struct with actor, object, and target properties

Fields

actor: ActorObjectAndTargetPropertiesActorEnum

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

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
target: ActorObjectAndTargetPropertiesTargetEnum

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

Implementations

impl ActorObjectAndTargetProperties[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

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

Get the target 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_target_xsd_any_uri<T>(
    &mut self,
    item: T
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
    T: TryInto<XsdAnyUri>, 
[src]

Set target with a value that can be converted into XsdAnyUri

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

Get target 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_target_xsd_any_uris<T>(
    &mut self,
    item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
    T: TryInto<XsdAnyUri>, 
[src]

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

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

Get the target 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_target_base_box<T>(
    &mut self,
    item: T
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
    T: TryInto<BaseBox>, 
[src]

Set target with a value that can be converted into BaseBox

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

Get target 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_target_base_boxes<T>(
    &mut self,
    item: Vec<T>
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
    T: TryInto<BaseBox>, 
[src]

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

Trait Implementations

impl AsMut<ActorObjectAndTargetProperties> for Invite[src]

impl AsRef<ActorObjectAndTargetProperties> for Invite[src]

impl Clone for ActorObjectAndTargetProperties[src]

impl Debug for ActorObjectAndTargetProperties[src]

impl Default for ActorObjectAndTargetProperties[src]

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

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