Skip to main content

ActorAndObjectProperties

Struct ActorAndObjectProperties 

Source
pub struct ActorAndObjectProperties {
    pub actor: ActorAndObjectPropertiesActorEnum,
    pub object: ActorAndObjectPropertiesObjectEnum,
}
Expand description

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§

Source§

impl ActorAndObjectProperties

Source

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
Source

pub fn set_actor_xsd_any_uri<T>( &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

Source

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.

Source

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

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

Source

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
Source

pub fn set_actor_base_box<T>( &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

Source

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.

Source

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

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

Source

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
Source

pub fn set_object_xsd_any_uri<T>( &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

Source

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.

Source

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

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

Source

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
Source

pub fn set_object_base_box<T>( &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

Source

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.

Source

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

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

Trait Implementations§

Source§

impl AsMut<ActorAndObjectProperties> for Accept

Source§

fn as_mut(&mut self) -> &mut AcceptProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Add

Source§

fn as_mut(&mut self) -> &mut AddProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Block

Source§

fn as_mut(&mut self) -> &mut BlockProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Create

Source§

fn as_mut(&mut self) -> &mut CreateProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Dislike

Source§

fn as_mut(&mut self) -> &mut DislikeProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Flag

Source§

fn as_mut(&mut self) -> &mut FlagProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Follow

Source§

fn as_mut(&mut self) -> &mut FollowProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Ignore

Source§

fn as_mut(&mut self) -> &mut IgnoreProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Join

Source§

fn as_mut(&mut self) -> &mut JoinProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Leave

Source§

fn as_mut(&mut self) -> &mut LeaveProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Like

Source§

fn as_mut(&mut self) -> &mut LikeProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Listen

Source§

fn as_mut(&mut self) -> &mut ListenProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Read

Source§

fn as_mut(&mut self) -> &mut ReadProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Reject

Source§

fn as_mut(&mut self) -> &mut RejectProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for TentativeAccept

Source§

fn as_mut(&mut self) -> &mut TentativeAcceptProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for TentativeReject

Source§

fn as_mut(&mut self) -> &mut TentativeRejectProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Undo

Source§

fn as_mut(&mut self) -> &mut UndoProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for Update

Source§

fn as_mut(&mut self) -> &mut UpdateProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<ActorAndObjectProperties> for View

Source§

fn as_mut(&mut self) -> &mut ViewProperties

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Accept

Source§

fn as_ref(&self) -> &AcceptProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Add

Source§

fn as_ref(&self) -> &AddProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Block

Source§

fn as_ref(&self) -> &BlockProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Create

Source§

fn as_ref(&self) -> &CreateProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Dislike

Source§

fn as_ref(&self) -> &DislikeProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Flag

Source§

fn as_ref(&self) -> &FlagProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Follow

Source§

fn as_ref(&self) -> &FollowProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Ignore

Source§

fn as_ref(&self) -> &IgnoreProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Join

Source§

fn as_ref(&self) -> &JoinProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Leave

Source§

fn as_ref(&self) -> &LeaveProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Like

Source§

fn as_ref(&self) -> &LikeProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Listen

Source§

fn as_ref(&self) -> &ListenProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Read

Source§

fn as_ref(&self) -> &ReadProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Reject

Source§

fn as_ref(&self) -> &RejectProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for TentativeAccept

Source§

fn as_ref(&self) -> &TentativeAcceptProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for TentativeReject

Source§

fn as_ref(&self) -> &TentativeRejectProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Undo

Source§

fn as_ref(&self) -> &UndoProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for Update

Source§

fn as_ref(&self) -> &UpdateProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ActorAndObjectProperties> for View

Source§

fn as_ref(&self) -> &ViewProperties

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for ActorAndObjectProperties

Source§

fn clone(&self) -> ActorAndObjectProperties

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ActorAndObjectProperties

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ActorAndObjectProperties

Source§

fn default() -> ActorAndObjectProperties

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ActorAndObjectProperties

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ActorAndObjectProperties

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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