[−][src]Struct activitystreams::activity::properties::ActorAndObjectProperties
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]
&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
Trait Implementations
impl AsMut<ActorAndObjectProperties> for Accept
[src]
fn as_mut(&mut self) -> &mut AcceptProperties
[src]
impl AsMut<ActorAndObjectProperties> for Add
[src]
fn as_mut(&mut self) -> &mut AddProperties
[src]
impl AsMut<ActorAndObjectProperties> for Like
[src]
fn as_mut(&mut self) -> &mut LikeProperties
[src]
impl AsMut<ActorAndObjectProperties> for Listen
[src]
fn as_mut(&mut self) -> &mut ListenProperties
[src]
impl AsMut<ActorAndObjectProperties> for Read
[src]
fn as_mut(&mut self) -> &mut ReadProperties
[src]
impl AsMut<ActorAndObjectProperties> for Reject
[src]
fn as_mut(&mut self) -> &mut RejectProperties
[src]
impl AsMut<ActorAndObjectProperties> for TentativeAccept
[src]
fn as_mut(&mut self) -> &mut TentativeAcceptProperties
[src]
impl AsMut<ActorAndObjectProperties> for TentativeReject
[src]
fn as_mut(&mut self) -> &mut TentativeRejectProperties
[src]
impl AsMut<ActorAndObjectProperties> for Undo
[src]
fn as_mut(&mut self) -> &mut UndoProperties
[src]
impl AsMut<ActorAndObjectProperties> for Update
[src]
fn as_mut(&mut self) -> &mut UpdateProperties
[src]
impl AsMut<ActorAndObjectProperties> for View
[src]
fn as_mut(&mut self) -> &mut ViewProperties
[src]
impl AsMut<ActorAndObjectProperties> for Block
[src]
fn as_mut(&mut self) -> &mut BlockProperties
[src]
impl AsMut<ActorAndObjectProperties> for Create
[src]
fn as_mut(&mut self) -> &mut CreateProperties
[src]
impl AsMut<ActorAndObjectProperties> for Dislike
[src]
fn as_mut(&mut self) -> &mut DislikeProperties
[src]
impl AsMut<ActorAndObjectProperties> for Flag
[src]
fn as_mut(&mut self) -> &mut FlagProperties
[src]
impl AsMut<ActorAndObjectProperties> for Follow
[src]
fn as_mut(&mut self) -> &mut FollowProperties
[src]
impl AsMut<ActorAndObjectProperties> for Ignore
[src]
fn as_mut(&mut self) -> &mut IgnoreProperties
[src]
impl AsMut<ActorAndObjectProperties> for Join
[src]
fn as_mut(&mut self) -> &mut JoinProperties
[src]
impl AsMut<ActorAndObjectProperties> for Leave
[src]
fn as_mut(&mut self) -> &mut LeaveProperties
[src]
impl AsRef<ActorAndObjectProperties> for Accept
[src]
fn as_ref(&self) -> &AcceptProperties
[src]
impl AsRef<ActorAndObjectProperties> for Add
[src]
fn as_ref(&self) -> &AddProperties
[src]
impl AsRef<ActorAndObjectProperties> for Like
[src]
fn as_ref(&self) -> &LikeProperties
[src]
impl AsRef<ActorAndObjectProperties> for Listen
[src]
fn as_ref(&self) -> &ListenProperties
[src]
impl AsRef<ActorAndObjectProperties> for Read
[src]
fn as_ref(&self) -> &ReadProperties
[src]
impl AsRef<ActorAndObjectProperties> for Reject
[src]
fn as_ref(&self) -> &RejectProperties
[src]
impl AsRef<ActorAndObjectProperties> for TentativeAccept
[src]
fn as_ref(&self) -> &TentativeAcceptProperties
[src]
impl AsRef<ActorAndObjectProperties> for TentativeReject
[src]
fn as_ref(&self) -> &TentativeRejectProperties
[src]
impl AsRef<ActorAndObjectProperties> for Undo
[src]
fn as_ref(&self) -> &UndoProperties
[src]
impl AsRef<ActorAndObjectProperties> for Update
[src]
fn as_ref(&self) -> &UpdateProperties
[src]
impl AsRef<ActorAndObjectProperties> for View
[src]
fn as_ref(&self) -> &ViewProperties
[src]
impl AsRef<ActorAndObjectProperties> for Block
[src]
fn as_ref(&self) -> &BlockProperties
[src]
impl AsRef<ActorAndObjectProperties> for Create
[src]
fn as_ref(&self) -> &CreateProperties
[src]
impl AsRef<ActorAndObjectProperties> for Dislike
[src]
fn as_ref(&self) -> &DislikeProperties
[src]
impl AsRef<ActorAndObjectProperties> for Flag
[src]
fn as_ref(&self) -> &FlagProperties
[src]
impl AsRef<ActorAndObjectProperties> for Follow
[src]
fn as_ref(&self) -> &FollowProperties
[src]
impl AsRef<ActorAndObjectProperties> for Ignore
[src]
fn as_ref(&self) -> &IgnoreProperties
[src]
impl AsRef<ActorAndObjectProperties> for Join
[src]
fn as_ref(&self) -> &JoinProperties
[src]
impl AsRef<ActorAndObjectProperties> for Leave
[src]
fn as_ref(&self) -> &LeaveProperties
[src]
impl Clone for ActorAndObjectProperties
[src]
fn clone(&self) -> ActorAndObjectProperties
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ActorAndObjectProperties
[src]
impl Default for ActorAndObjectProperties
[src]
fn default() -> ActorAndObjectProperties
[src]
impl<'de> Deserialize<'de> for ActorAndObjectProperties
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ActorAndObjectProperties
[src]
Auto Trait Implementations
impl RefUnwindSafe for ActorAndObjectProperties
impl Send for ActorAndObjectProperties
impl Sync for ActorAndObjectProperties
impl Unpin for ActorAndObjectProperties
impl UnwindSafe for ActorAndObjectProperties
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>,