pub trait ExerciseActionTrait {
Show 26 methods
// Required methods
fn get_course(&self) -> &[CourseProperty];
fn take_course(&mut self) -> Vec<CourseProperty>;
fn get_diet(&self) -> &[DietProperty];
fn take_diet(&mut self) -> Vec<DietProperty>;
fn get_distance(&self) -> &[DistanceProperty];
fn take_distance(&mut self) -> Vec<DistanceProperty>;
fn get_exercise_course(&self) -> &[ExerciseCourseProperty];
fn take_exercise_course(&mut self) -> Vec<ExerciseCourseProperty>;
fn get_exercise_plan(&self) -> &[ExercisePlanProperty];
fn take_exercise_plan(&mut self) -> Vec<ExercisePlanProperty>;
fn get_exercise_related_diet(&self) -> &[ExerciseRelatedDietProperty];
fn take_exercise_related_diet(&mut self) -> Vec<ExerciseRelatedDietProperty>;
fn get_exercise_type(&self) -> &[ExerciseTypeProperty];
fn take_exercise_type(&mut self) -> Vec<ExerciseTypeProperty>;
fn get_from_location(&self) -> &[FromLocationProperty];
fn take_from_location(&mut self) -> Vec<FromLocationProperty>;
fn get_opponent(&self) -> &[OpponentProperty];
fn take_opponent(&mut self) -> Vec<OpponentProperty>;
fn get_sports_activity_location(&self) -> &[SportsActivityLocationProperty];
fn take_sports_activity_location(
&mut self
) -> Vec<SportsActivityLocationProperty>;
fn get_sports_event(&self) -> &[SportsEventProperty];
fn take_sports_event(&mut self) -> Vec<SportsEventProperty>;
fn get_sports_team(&self) -> &[SportsTeamProperty];
fn take_sports_team(&mut self) -> Vec<SportsTeamProperty>;
fn get_to_location(&self) -> &[ToLocationProperty];
fn take_to_location(&mut self) -> Vec<ToLocationProperty>;
}
Expand description
This trait is for properties from https://schema.org/ExerciseAction.
Required Methods§
sourcefn get_course(&self) -> &[CourseProperty]
fn get_course(&self) -> &[CourseProperty]
Get https://schema.org/course from Self
as borrowed slice.
sourcefn take_course(&mut self) -> Vec<CourseProperty>
fn take_course(&mut self) -> Vec<CourseProperty>
Take https://schema.org/course from Self
as owned vector.
sourcefn get_diet(&self) -> &[DietProperty]
fn get_diet(&self) -> &[DietProperty]
Get https://schema.org/diet from Self
as borrowed slice.
sourcefn take_diet(&mut self) -> Vec<DietProperty>
fn take_diet(&mut self) -> Vec<DietProperty>
Take https://schema.org/diet from Self
as owned vector.
sourcefn get_distance(&self) -> &[DistanceProperty]
fn get_distance(&self) -> &[DistanceProperty]
Get https://schema.org/distance from Self
as borrowed slice.
sourcefn take_distance(&mut self) -> Vec<DistanceProperty>
fn take_distance(&mut self) -> Vec<DistanceProperty>
Take https://schema.org/distance from Self
as owned vector.
sourcefn get_exercise_course(&self) -> &[ExerciseCourseProperty]
fn get_exercise_course(&self) -> &[ExerciseCourseProperty]
Get https://schema.org/exerciseCourse from Self
as borrowed slice.
sourcefn take_exercise_course(&mut self) -> Vec<ExerciseCourseProperty>
fn take_exercise_course(&mut self) -> Vec<ExerciseCourseProperty>
Take https://schema.org/exerciseCourse from Self
as owned vector.
sourcefn get_exercise_plan(&self) -> &[ExercisePlanProperty]
fn get_exercise_plan(&self) -> &[ExercisePlanProperty]
Get https://schema.org/exercisePlan from Self
as borrowed slice.
sourcefn take_exercise_plan(&mut self) -> Vec<ExercisePlanProperty>
fn take_exercise_plan(&mut self) -> Vec<ExercisePlanProperty>
Take https://schema.org/exercisePlan from Self
as owned vector.
Get https://schema.org/exerciseRelatedDiet from Self
as borrowed slice.
Take https://schema.org/exerciseRelatedDiet from Self
as owned vector.
sourcefn get_exercise_type(&self) -> &[ExerciseTypeProperty]
fn get_exercise_type(&self) -> &[ExerciseTypeProperty]
Get https://schema.org/exerciseType from Self
as borrowed slice.
sourcefn take_exercise_type(&mut self) -> Vec<ExerciseTypeProperty>
fn take_exercise_type(&mut self) -> Vec<ExerciseTypeProperty>
Take https://schema.org/exerciseType from Self
as owned vector.
sourcefn get_from_location(&self) -> &[FromLocationProperty]
fn get_from_location(&self) -> &[FromLocationProperty]
Get https://schema.org/fromLocation from Self
as borrowed slice.
sourcefn take_from_location(&mut self) -> Vec<FromLocationProperty>
fn take_from_location(&mut self) -> Vec<FromLocationProperty>
Take https://schema.org/fromLocation from Self
as owned vector.
sourcefn get_opponent(&self) -> &[OpponentProperty]
fn get_opponent(&self) -> &[OpponentProperty]
Get https://schema.org/opponent from Self
as borrowed slice.
sourcefn take_opponent(&mut self) -> Vec<OpponentProperty>
fn take_opponent(&mut self) -> Vec<OpponentProperty>
Take https://schema.org/opponent from Self
as owned vector.
sourcefn get_sports_activity_location(&self) -> &[SportsActivityLocationProperty]
fn get_sports_activity_location(&self) -> &[SportsActivityLocationProperty]
Get https://schema.org/sportsActivityLocation from Self
as borrowed slice.
sourcefn take_sports_activity_location(
&mut self
) -> Vec<SportsActivityLocationProperty>
fn take_sports_activity_location( &mut self ) -> Vec<SportsActivityLocationProperty>
Take https://schema.org/sportsActivityLocation from Self
as owned vector.
sourcefn get_sports_event(&self) -> &[SportsEventProperty]
fn get_sports_event(&self) -> &[SportsEventProperty]
Get https://schema.org/sportsEvent from Self
as borrowed slice.
sourcefn take_sports_event(&mut self) -> Vec<SportsEventProperty>
fn take_sports_event(&mut self) -> Vec<SportsEventProperty>
Take https://schema.org/sportsEvent from Self
as owned vector.
sourcefn get_sports_team(&self) -> &[SportsTeamProperty]
fn get_sports_team(&self) -> &[SportsTeamProperty]
Get https://schema.org/sportsTeam from Self
as borrowed slice.
sourcefn take_sports_team(&mut self) -> Vec<SportsTeamProperty>
fn take_sports_team(&mut self) -> Vec<SportsTeamProperty>
Take https://schema.org/sportsTeam from Self
as owned vector.
sourcefn get_to_location(&self) -> &[ToLocationProperty]
fn get_to_location(&self) -> &[ToLocationProperty]
Get https://schema.org/toLocation from Self
as borrowed slice.
sourcefn take_to_location(&mut self) -> Vec<ToLocationProperty>
fn take_to_location(&mut self) -> Vec<ToLocationProperty>
Take https://schema.org/toLocation from Self
as owned vector.