Trait schema_org_types::PlayActionTrait
source · pub trait PlayActionTrait {
// Required methods
fn get_audience(&self) -> &[AudienceProperty];
fn take_audience(&mut self) -> Vec<AudienceProperty>;
fn get_event(&self) -> &[EventProperty];
fn take_event(&mut self) -> Vec<EventProperty>;
}
Expand description
This trait is for properties from https://schema.org/PlayAction.
Required Methods§
sourcefn get_audience(&self) -> &[AudienceProperty]
fn get_audience(&self) -> &[AudienceProperty]
Get https://schema.org/audience from Self
as borrowed slice.
sourcefn take_audience(&mut self) -> Vec<AudienceProperty>
fn take_audience(&mut self) -> Vec<AudienceProperty>
Take https://schema.org/audience from Self
as owned vector.
sourcefn get_event(&self) -> &[EventProperty]
fn get_event(&self) -> &[EventProperty]
Get https://schema.org/event from Self
as borrowed slice.
sourcefn take_event(&mut self) -> Vec<EventProperty>
fn take_event(&mut self) -> Vec<EventProperty>
Take https://schema.org/event from Self
as owned vector.