pub trait SportsTeamTrait {
    // Required methods
    fn get_athlete(&self) -> &[AthleteProperty];
    fn take_athlete(&mut self) -> Vec<AthleteProperty>;
    fn get_coach(&self) -> &[CoachProperty];
    fn take_coach(&mut self) -> Vec<CoachProperty>;
    fn get_gender(&self) -> &[GenderProperty];
    fn take_gender(&mut self) -> Vec<GenderProperty>;
}
Expand description

This trait is for properties from https://schema.org/SportsTeam.

Required Methods§

source

fn get_athlete(&self) -> &[AthleteProperty]

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

source

fn take_athlete(&mut self) -> Vec<AthleteProperty>

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

source

fn get_coach(&self) -> &[CoachProperty]

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

source

fn take_coach(&mut self) -> Vec<CoachProperty>

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

source

fn get_gender(&self) -> &[GenderProperty]

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

source

fn take_gender(&mut self) -> Vec<GenderProperty>

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

Implementors§