Trait schema_org_types::SportsEventTrait
source · pub trait SportsEventTrait {
// Required methods
fn get_away_team(&self) -> &[AwayTeamProperty];
fn take_away_team(&mut self) -> Vec<AwayTeamProperty>;
fn get_competitor(&self) -> &[CompetitorProperty];
fn take_competitor(&mut self) -> Vec<CompetitorProperty>;
fn get_home_team(&self) -> &[HomeTeamProperty];
fn take_home_team(&mut self) -> Vec<HomeTeamProperty>;
fn get_sport(&self) -> &[SportProperty];
fn take_sport(&mut self) -> Vec<SportProperty>;
}
Expand description
This trait is for properties from https://schema.org/SportsEvent.
Required Methods§
sourcefn get_away_team(&self) -> &[AwayTeamProperty]
fn get_away_team(&self) -> &[AwayTeamProperty]
Get https://schema.org/awayTeam from Self
as borrowed slice.
sourcefn take_away_team(&mut self) -> Vec<AwayTeamProperty>
fn take_away_team(&mut self) -> Vec<AwayTeamProperty>
Take https://schema.org/awayTeam from Self
as owned vector.
sourcefn get_competitor(&self) -> &[CompetitorProperty]
fn get_competitor(&self) -> &[CompetitorProperty]
Get https://schema.org/competitor from Self
as borrowed slice.
sourcefn take_competitor(&mut self) -> Vec<CompetitorProperty>
fn take_competitor(&mut self) -> Vec<CompetitorProperty>
Take https://schema.org/competitor from Self
as owned vector.
sourcefn get_home_team(&self) -> &[HomeTeamProperty]
fn get_home_team(&self) -> &[HomeTeamProperty]
Get https://schema.org/homeTeam from Self
as borrowed slice.
sourcefn take_home_team(&mut self) -> Vec<HomeTeamProperty>
fn take_home_team(&mut self) -> Vec<HomeTeamProperty>
Take https://schema.org/homeTeam from Self
as owned vector.
sourcefn get_sport(&self) -> &[SportProperty]
fn get_sport(&self) -> &[SportProperty]
Get https://schema.org/sport from Self
as borrowed slice.
sourcefn take_sport(&mut self) -> Vec<SportProperty>
fn take_sport(&mut self) -> Vec<SportProperty>
Take https://schema.org/sport from Self
as owned vector.