[−][src]Struct activitystreams::activity::properties::ActorAndOriginProperties
Struct with actor
and origin
properties
Fields
actor: ActorAndOriginPropertiesActorEnum
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
origin: ActorAndOriginPropertiesOriginEnum
Describes an indirect object of the activity from which the activity is directed.
The precise meaning of the origin is the object of the English preposition "from". For instance, in the activity "John moved an item to List B from List A", the origin of the activity is "List A".
- Range:
Object
|Link
- Functional: false
Implementations
impl ActorAndOriginProperties
[src]
pub fn get_actor_xsd_string(&self) -> Option<&XsdString>
[src]
Get the actor
as a XsdString
This returns None
if
- There is more than one value present
- The requested type is not the stored type
pub fn set_actor_xsd_string<T>(
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<XsdString>>::Error> where
T: TryInto<XsdString>,
[src]
&mut self,
item: T
) -> Result<&mut Self, <T as TryInto<XsdString>>::Error> where
T: TryInto<XsdString>,
Set actor
with a value that can be converted into XsdString
pub fn get_many_actor_xsd_strings(
&self
) -> Option<impl Iterator<Item = &XsdString>>
[src]
&self
) -> Option<impl Iterator<Item = &XsdString>>
Get actor
as a vec of &XsdString
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_strings<T>(
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdString>>::Error> where
T: TryInto<XsdString>,
[src]
&mut self,
item: Vec<T>
) -> Result<&mut Self, <T as TryInto<XsdString>>::Error> where
T: TryInto<XsdString>,
Set actor
from a vec of items that can be converted into XsdString
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_origin_xsd_any_uri(&self) -> Option<&XsdAnyUri>
[src]
Get the origin
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_origin_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 origin
with a value that can be converted into XsdAnyUri
pub fn get_many_origin_xsd_any_uris(
&self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
[src]
&self
) -> Option<impl Iterator<Item = &XsdAnyUri>>
Get origin
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_origin_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 origin
from a vec of items that can be converted into XsdAnyUri
s
pub fn get_origin_base_box(&self) -> Option<&BaseBox>
[src]
Get the origin
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_origin_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 origin
with a value that can be converted into BaseBox
pub fn get_many_origin_base_boxes(
&self
) -> Option<impl Iterator<Item = &BaseBox>>
[src]
&self
) -> Option<impl Iterator<Item = &BaseBox>>
Get origin
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_origin_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 origin
from a vec of items that can be converted into BaseBox
s
Trait Implementations
impl AsMut<ActorAndOriginProperties> for Arrive
[src]
fn as_mut(&mut self) -> &mut ArriveProperties
[src]
impl AsRef<ActorAndOriginProperties> for Arrive
[src]
fn as_ref(&self) -> &ArriveProperties
[src]
impl Clone for ActorAndOriginProperties
[src]
fn clone(&self) -> ActorAndOriginProperties
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ActorAndOriginProperties
[src]
impl Default for ActorAndOriginProperties
[src]
fn default() -> ActorAndOriginProperties
[src]
impl<'de> Deserialize<'de> for ActorAndOriginProperties
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ActorAndOriginProperties
[src]
Auto Trait Implementations
impl RefUnwindSafe for ActorAndOriginProperties
impl Send for ActorAndOriginProperties
impl Sync for ActorAndOriginProperties
impl Unpin for ActorAndOriginProperties
impl UnwindSafe for ActorAndOriginProperties
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>,