[−][src]Struct activitystreams::activity::properties::ActorObjectAndTargetProperties
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]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
T: TryInto<XsdAnyUri>,
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]
&self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
Get actor
as a vec of &XsdAnyUri
s
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]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
T: TryInto<XsdAnyUri>,
Set actor
from a vec of items that can be converted into XsdAnyUri
s
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]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
T: TryInto<BaseBox>,
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]
&self
) -> Option<impl Iterator<Item = &BaseBox>>
Get actor
as a vec of &BaseBox
s
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]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
T: TryInto<BaseBox>,
Set actor
from a vec of items that can be converted into BaseBox
s
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]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
T: TryInto<XsdAnyUri>,
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]
&self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
Get object
as a vec of &XsdAnyUri
s
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]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
T: TryInto<XsdAnyUri>,
Set object
from a vec of items that can be converted into XsdAnyUri
s
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]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
T: TryInto<BaseBox>,
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]
&self
) -> Option<impl Iterator<Item = &BaseBox>>
Get object
as a vec of &BaseBox
s
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]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
T: TryInto<BaseBox>,
Set object
from a vec of items that can be converted into BaseBox
s
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]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
T: TryInto<XsdAnyUri>,
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]
&self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
Get target
as a vec of &XsdAnyUri
s
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]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error> where
T: TryInto<XsdAnyUri>,
Set target
from a vec of items that can be converted into XsdAnyUri
s
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]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
T: TryInto<BaseBox>,
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]
&self
) -> Option<impl Iterator<Item = &BaseBox>>
Get target
as a vec of &BaseBox
s
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]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error> where
T: TryInto<BaseBox>,
Set target
from a vec of items that can be converted into BaseBox
s
Trait Implementations
impl AsMut<ActorObjectAndTargetProperties> for Invite
[src]
fn as_mut(&mut self) -> &mut InviteProperties
[src]
impl AsRef<ActorObjectAndTargetProperties> for Invite
[src]
fn as_ref(&self) -> &InviteProperties
[src]
impl Clone for ActorObjectAndTargetProperties
[src]
fn clone(&self) -> ActorObjectAndTargetProperties
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ActorObjectAndTargetProperties
[src]
impl Default for ActorObjectAndTargetProperties
[src]
impl<'de> Deserialize<'de> for ActorObjectAndTargetProperties
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ActorObjectAndTargetProperties
[src]
Auto Trait Implementations
impl RefUnwindSafe for ActorObjectAndTargetProperties
impl Send for ActorObjectAndTargetProperties
impl Sync for ActorObjectAndTargetProperties
impl Unpin for ActorObjectAndTargetProperties
impl UnwindSafe for ActorObjectAndTargetProperties
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,