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§

source

fn get_audience(&self) -> &[AudienceProperty]

Get https://schema.org/audience from Self as borrowed slice.

source

fn take_audience(&mut self) -> Vec<AudienceProperty>

Take https://schema.org/audience from Self as owned vector.

source

fn get_event(&self) -> &[EventProperty]

Get https://schema.org/event from Self as borrowed slice.

source

fn take_event(&mut self) -> Vec<EventProperty>

Take https://schema.org/event from Self as owned vector.

Implementors§