pub struct ActorAndObjectProperties {
pub actor: ActorAndObjectPropertiesActorEnum,
pub object: ActorAndObjectPropertiesObjectEnum,
}Expand description
Struct with actor and object properties
Fields§
§actor: ActorAndObjectPropertiesActorEnumDescribes 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: ActorAndObjectPropertiesObjectEnumWhen 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§
Source§impl ActorAndObjectProperties
impl ActorAndObjectProperties
Sourcepub fn get_actor_xsd_any_uri(&self) -> Option<&XsdAnyUri>
pub fn get_actor_xsd_any_uri(&self) -> Option<&XsdAnyUri>
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
Sourcepub fn set_actor_xsd_any_uri<T>(
&mut self,
item: T,
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
pub fn set_actor_xsd_any_uri<T>( &mut self, item: T, ) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
Set actor with a value that can be converted into XsdAnyUri
Sourcepub fn get_many_actor_xsd_any_uris(
&self,
) -> Option<impl Iterator<Item = &XsdAnyUri>>
pub fn get_many_actor_xsd_any_uris( &self, ) -> Option<impl Iterator<Item = &XsdAnyUri>>
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.
Sourcepub fn set_many_actor_xsd_any_uris<T>(
&mut self,
item: Vec<T>,
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
pub fn set_many_actor_xsd_any_uris<T>( &mut self, item: Vec<T>, ) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
Set actor from a vec of items that can be converted into XsdAnyUris
Sourcepub fn get_actor_base_box(&self) -> Option<&BaseBox>
pub fn get_actor_base_box(&self) -> Option<&BaseBox>
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
Sourcepub fn set_actor_base_box<T>(
&mut self,
item: T,
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error>
pub fn set_actor_base_box<T>( &mut self, item: T, ) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error>
Set actor with a value that can be converted into BaseBox
Sourcepub fn get_many_actor_base_boxes(
&self,
) -> Option<impl Iterator<Item = &BaseBox>>
pub fn get_many_actor_base_boxes( &self, ) -> Option<impl Iterator<Item = &BaseBox>>
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.
Sourcepub fn set_many_actor_base_boxes<T>(
&mut self,
item: Vec<T>,
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error>
pub fn set_many_actor_base_boxes<T>( &mut self, item: Vec<T>, ) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error>
Set actor from a vec of items that can be converted into BaseBoxs
Sourcepub fn get_object_xsd_any_uri(&self) -> Option<&XsdAnyUri>
pub fn get_object_xsd_any_uri(&self) -> Option<&XsdAnyUri>
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
Sourcepub fn set_object_xsd_any_uri<T>(
&mut self,
item: T,
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
pub fn set_object_xsd_any_uri<T>( &mut self, item: T, ) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
Set object with a value that can be converted into XsdAnyUri
Sourcepub fn get_many_object_xsd_any_uris(
&self,
) -> Option<impl Iterator<Item = &XsdAnyUri>>
pub fn get_many_object_xsd_any_uris( &self, ) -> Option<impl Iterator<Item = &XsdAnyUri>>
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.
Sourcepub fn set_many_object_xsd_any_uris<T>(
&mut self,
item: Vec<T>,
) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
pub fn set_many_object_xsd_any_uris<T>( &mut self, item: Vec<T>, ) -> Result<&mut Self, <T as TryInto<XsdAnyUri>>::Error>
Set object from a vec of items that can be converted into XsdAnyUris
Sourcepub fn get_object_base_box(&self) -> Option<&BaseBox>
pub fn get_object_base_box(&self) -> Option<&BaseBox>
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
Sourcepub fn set_object_base_box<T>(
&mut self,
item: T,
) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error>
pub fn set_object_base_box<T>( &mut self, item: T, ) -> Result<&mut Self, <T as TryInto<BaseBox>>::Error>
Set object with a value that can be converted into BaseBox
Sourcepub fn get_many_object_base_boxes(
&self,
) -> Option<impl Iterator<Item = &BaseBox>>
pub fn get_many_object_base_boxes( &self, ) -> Option<impl Iterator<Item = &BaseBox>>
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.
Trait Implementations§
Source§impl AsMut<ActorAndObjectProperties> for Accept
impl AsMut<ActorAndObjectProperties> for Accept
Source§fn as_mut(&mut self) -> &mut AcceptProperties
fn as_mut(&mut self) -> &mut AcceptProperties
Source§impl AsMut<ActorAndObjectProperties> for Add
impl AsMut<ActorAndObjectProperties> for Add
Source§fn as_mut(&mut self) -> &mut AddProperties
fn as_mut(&mut self) -> &mut AddProperties
Source§impl AsMut<ActorAndObjectProperties> for Block
impl AsMut<ActorAndObjectProperties> for Block
Source§fn as_mut(&mut self) -> &mut BlockProperties
fn as_mut(&mut self) -> &mut BlockProperties
Source§impl AsMut<ActorAndObjectProperties> for Create
impl AsMut<ActorAndObjectProperties> for Create
Source§fn as_mut(&mut self) -> &mut CreateProperties
fn as_mut(&mut self) -> &mut CreateProperties
Source§impl AsMut<ActorAndObjectProperties> for Dislike
impl AsMut<ActorAndObjectProperties> for Dislike
Source§fn as_mut(&mut self) -> &mut DislikeProperties
fn as_mut(&mut self) -> &mut DislikeProperties
Source§impl AsMut<ActorAndObjectProperties> for Flag
impl AsMut<ActorAndObjectProperties> for Flag
Source§fn as_mut(&mut self) -> &mut FlagProperties
fn as_mut(&mut self) -> &mut FlagProperties
Source§impl AsMut<ActorAndObjectProperties> for Follow
impl AsMut<ActorAndObjectProperties> for Follow
Source§fn as_mut(&mut self) -> &mut FollowProperties
fn as_mut(&mut self) -> &mut FollowProperties
Source§impl AsMut<ActorAndObjectProperties> for Ignore
impl AsMut<ActorAndObjectProperties> for Ignore
Source§fn as_mut(&mut self) -> &mut IgnoreProperties
fn as_mut(&mut self) -> &mut IgnoreProperties
Source§impl AsMut<ActorAndObjectProperties> for Join
impl AsMut<ActorAndObjectProperties> for Join
Source§fn as_mut(&mut self) -> &mut JoinProperties
fn as_mut(&mut self) -> &mut JoinProperties
Source§impl AsMut<ActorAndObjectProperties> for Leave
impl AsMut<ActorAndObjectProperties> for Leave
Source§fn as_mut(&mut self) -> &mut LeaveProperties
fn as_mut(&mut self) -> &mut LeaveProperties
Source§impl AsMut<ActorAndObjectProperties> for Like
impl AsMut<ActorAndObjectProperties> for Like
Source§fn as_mut(&mut self) -> &mut LikeProperties
fn as_mut(&mut self) -> &mut LikeProperties
Source§impl AsMut<ActorAndObjectProperties> for Listen
impl AsMut<ActorAndObjectProperties> for Listen
Source§fn as_mut(&mut self) -> &mut ListenProperties
fn as_mut(&mut self) -> &mut ListenProperties
Source§impl AsMut<ActorAndObjectProperties> for Read
impl AsMut<ActorAndObjectProperties> for Read
Source§fn as_mut(&mut self) -> &mut ReadProperties
fn as_mut(&mut self) -> &mut ReadProperties
Source§impl AsMut<ActorAndObjectProperties> for Reject
impl AsMut<ActorAndObjectProperties> for Reject
Source§fn as_mut(&mut self) -> &mut RejectProperties
fn as_mut(&mut self) -> &mut RejectProperties
Source§impl AsMut<ActorAndObjectProperties> for TentativeAccept
impl AsMut<ActorAndObjectProperties> for TentativeAccept
Source§fn as_mut(&mut self) -> &mut TentativeAcceptProperties
fn as_mut(&mut self) -> &mut TentativeAcceptProperties
Source§impl AsMut<ActorAndObjectProperties> for TentativeReject
impl AsMut<ActorAndObjectProperties> for TentativeReject
Source§fn as_mut(&mut self) -> &mut TentativeRejectProperties
fn as_mut(&mut self) -> &mut TentativeRejectProperties
Source§impl AsMut<ActorAndObjectProperties> for Undo
impl AsMut<ActorAndObjectProperties> for Undo
Source§fn as_mut(&mut self) -> &mut UndoProperties
fn as_mut(&mut self) -> &mut UndoProperties
Source§impl AsMut<ActorAndObjectProperties> for Update
impl AsMut<ActorAndObjectProperties> for Update
Source§fn as_mut(&mut self) -> &mut UpdateProperties
fn as_mut(&mut self) -> &mut UpdateProperties
Source§impl AsMut<ActorAndObjectProperties> for View
impl AsMut<ActorAndObjectProperties> for View
Source§fn as_mut(&mut self) -> &mut ViewProperties
fn as_mut(&mut self) -> &mut ViewProperties
Source§impl AsRef<ActorAndObjectProperties> for Accept
impl AsRef<ActorAndObjectProperties> for Accept
Source§fn as_ref(&self) -> &AcceptProperties
fn as_ref(&self) -> &AcceptProperties
Source§impl AsRef<ActorAndObjectProperties> for Add
impl AsRef<ActorAndObjectProperties> for Add
Source§fn as_ref(&self) -> &AddProperties
fn as_ref(&self) -> &AddProperties
Source§impl AsRef<ActorAndObjectProperties> for Block
impl AsRef<ActorAndObjectProperties> for Block
Source§fn as_ref(&self) -> &BlockProperties
fn as_ref(&self) -> &BlockProperties
Source§impl AsRef<ActorAndObjectProperties> for Create
impl AsRef<ActorAndObjectProperties> for Create
Source§fn as_ref(&self) -> &CreateProperties
fn as_ref(&self) -> &CreateProperties
Source§impl AsRef<ActorAndObjectProperties> for Dislike
impl AsRef<ActorAndObjectProperties> for Dislike
Source§fn as_ref(&self) -> &DislikeProperties
fn as_ref(&self) -> &DislikeProperties
Source§impl AsRef<ActorAndObjectProperties> for Flag
impl AsRef<ActorAndObjectProperties> for Flag
Source§fn as_ref(&self) -> &FlagProperties
fn as_ref(&self) -> &FlagProperties
Source§impl AsRef<ActorAndObjectProperties> for Follow
impl AsRef<ActorAndObjectProperties> for Follow
Source§fn as_ref(&self) -> &FollowProperties
fn as_ref(&self) -> &FollowProperties
Source§impl AsRef<ActorAndObjectProperties> for Ignore
impl AsRef<ActorAndObjectProperties> for Ignore
Source§fn as_ref(&self) -> &IgnoreProperties
fn as_ref(&self) -> &IgnoreProperties
Source§impl AsRef<ActorAndObjectProperties> for Join
impl AsRef<ActorAndObjectProperties> for Join
Source§fn as_ref(&self) -> &JoinProperties
fn as_ref(&self) -> &JoinProperties
Source§impl AsRef<ActorAndObjectProperties> for Leave
impl AsRef<ActorAndObjectProperties> for Leave
Source§fn as_ref(&self) -> &LeaveProperties
fn as_ref(&self) -> &LeaveProperties
Source§impl AsRef<ActorAndObjectProperties> for Like
impl AsRef<ActorAndObjectProperties> for Like
Source§fn as_ref(&self) -> &LikeProperties
fn as_ref(&self) -> &LikeProperties
Source§impl AsRef<ActorAndObjectProperties> for Listen
impl AsRef<ActorAndObjectProperties> for Listen
Source§fn as_ref(&self) -> &ListenProperties
fn as_ref(&self) -> &ListenProperties
Source§impl AsRef<ActorAndObjectProperties> for Read
impl AsRef<ActorAndObjectProperties> for Read
Source§fn as_ref(&self) -> &ReadProperties
fn as_ref(&self) -> &ReadProperties
Source§impl AsRef<ActorAndObjectProperties> for Reject
impl AsRef<ActorAndObjectProperties> for Reject
Source§fn as_ref(&self) -> &RejectProperties
fn as_ref(&self) -> &RejectProperties
Source§impl AsRef<ActorAndObjectProperties> for TentativeAccept
impl AsRef<ActorAndObjectProperties> for TentativeAccept
Source§fn as_ref(&self) -> &TentativeAcceptProperties
fn as_ref(&self) -> &TentativeAcceptProperties
Source§impl AsRef<ActorAndObjectProperties> for TentativeReject
impl AsRef<ActorAndObjectProperties> for TentativeReject
Source§fn as_ref(&self) -> &TentativeRejectProperties
fn as_ref(&self) -> &TentativeRejectProperties
Source§impl AsRef<ActorAndObjectProperties> for Undo
impl AsRef<ActorAndObjectProperties> for Undo
Source§fn as_ref(&self) -> &UndoProperties
fn as_ref(&self) -> &UndoProperties
Source§impl AsRef<ActorAndObjectProperties> for Update
impl AsRef<ActorAndObjectProperties> for Update
Source§fn as_ref(&self) -> &UpdateProperties
fn as_ref(&self) -> &UpdateProperties
Source§impl AsRef<ActorAndObjectProperties> for View
impl AsRef<ActorAndObjectProperties> for View
Source§fn as_ref(&self) -> &ViewProperties
fn as_ref(&self) -> &ViewProperties
Source§impl Clone for ActorAndObjectProperties
impl Clone for ActorAndObjectProperties
Source§fn clone(&self) -> ActorAndObjectProperties
fn clone(&self) -> ActorAndObjectProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more