Trait schema_org_types::CourseTrait
source · pub trait CourseTrait {
Show 20 methods
// Required methods
fn get_available_language(&self) -> &[AvailableLanguageProperty];
fn take_available_language(&mut self) -> Vec<AvailableLanguageProperty>;
fn get_course_code(&self) -> &[CourseCodeProperty];
fn take_course_code(&mut self) -> Vec<CourseCodeProperty>;
fn get_course_prerequisites(&self) -> &[CoursePrerequisitesProperty];
fn take_course_prerequisites(&mut self) -> Vec<CoursePrerequisitesProperty>;
fn get_educational_credential_awarded(
&self
) -> &[EducationalCredentialAwardedProperty];
fn take_educational_credential_awarded(
&mut self
) -> Vec<EducationalCredentialAwardedProperty>;
fn get_financial_aid_eligible(&self) -> &[FinancialAidEligibleProperty];
fn take_financial_aid_eligible(
&mut self
) -> Vec<FinancialAidEligibleProperty>;
fn get_has_course_instance(&self) -> &[HasCourseInstanceProperty];
fn take_has_course_instance(&mut self) -> Vec<HasCourseInstanceProperty>;
fn get_number_of_credits(&self) -> &[NumberOfCreditsProperty];
fn take_number_of_credits(&mut self) -> Vec<NumberOfCreditsProperty>;
fn get_occupational_credential_awarded(
&self
) -> &[OccupationalCredentialAwardedProperty];
fn take_occupational_credential_awarded(
&mut self
) -> Vec<OccupationalCredentialAwardedProperty>;
fn get_syllabus_sections(&self) -> &[SyllabusSectionsProperty];
fn take_syllabus_sections(&mut self) -> Vec<SyllabusSectionsProperty>;
fn get_total_historical_enrollment(
&self
) -> &[TotalHistoricalEnrollmentProperty];
fn take_total_historical_enrollment(
&mut self
) -> Vec<TotalHistoricalEnrollmentProperty>;
}
Expand description
This trait is for properties from https://schema.org/Course.
Required Methods§
sourcefn get_available_language(&self) -> &[AvailableLanguageProperty]
fn get_available_language(&self) -> &[AvailableLanguageProperty]
Get https://schema.org/availableLanguage from Self
as borrowed slice.
sourcefn take_available_language(&mut self) -> Vec<AvailableLanguageProperty>
fn take_available_language(&mut self) -> Vec<AvailableLanguageProperty>
Take https://schema.org/availableLanguage from Self
as owned vector.
sourcefn get_course_code(&self) -> &[CourseCodeProperty]
fn get_course_code(&self) -> &[CourseCodeProperty]
Get https://schema.org/courseCode from Self
as borrowed slice.
sourcefn take_course_code(&mut self) -> Vec<CourseCodeProperty>
fn take_course_code(&mut self) -> Vec<CourseCodeProperty>
Take https://schema.org/courseCode from Self
as owned vector.
sourcefn get_course_prerequisites(&self) -> &[CoursePrerequisitesProperty]
fn get_course_prerequisites(&self) -> &[CoursePrerequisitesProperty]
Get https://schema.org/coursePrerequisites from Self
as borrowed slice.
sourcefn take_course_prerequisites(&mut self) -> Vec<CoursePrerequisitesProperty>
fn take_course_prerequisites(&mut self) -> Vec<CoursePrerequisitesProperty>
Take https://schema.org/coursePrerequisites from Self
as owned vector.
sourcefn get_educational_credential_awarded(
&self
) -> &[EducationalCredentialAwardedProperty]
fn get_educational_credential_awarded( &self ) -> &[EducationalCredentialAwardedProperty]
Get https://schema.org/educationalCredentialAwarded from Self
as borrowed slice.
sourcefn take_educational_credential_awarded(
&mut self
) -> Vec<EducationalCredentialAwardedProperty>
fn take_educational_credential_awarded( &mut self ) -> Vec<EducationalCredentialAwardedProperty>
Take https://schema.org/educationalCredentialAwarded from Self
as owned vector.
sourcefn get_financial_aid_eligible(&self) -> &[FinancialAidEligibleProperty]
fn get_financial_aid_eligible(&self) -> &[FinancialAidEligibleProperty]
Get https://schema.org/financialAidEligible from Self
as borrowed slice.
sourcefn take_financial_aid_eligible(&mut self) -> Vec<FinancialAidEligibleProperty>
fn take_financial_aid_eligible(&mut self) -> Vec<FinancialAidEligibleProperty>
Take https://schema.org/financialAidEligible from Self
as owned vector.
sourcefn get_has_course_instance(&self) -> &[HasCourseInstanceProperty]
fn get_has_course_instance(&self) -> &[HasCourseInstanceProperty]
Get https://schema.org/hasCourseInstance from Self
as borrowed slice.
sourcefn take_has_course_instance(&mut self) -> Vec<HasCourseInstanceProperty>
fn take_has_course_instance(&mut self) -> Vec<HasCourseInstanceProperty>
Take https://schema.org/hasCourseInstance from Self
as owned vector.
sourcefn get_number_of_credits(&self) -> &[NumberOfCreditsProperty]
fn get_number_of_credits(&self) -> &[NumberOfCreditsProperty]
Get https://schema.org/numberOfCredits from Self
as borrowed slice.
sourcefn take_number_of_credits(&mut self) -> Vec<NumberOfCreditsProperty>
fn take_number_of_credits(&mut self) -> Vec<NumberOfCreditsProperty>
Take https://schema.org/numberOfCredits from Self
as owned vector.
sourcefn get_occupational_credential_awarded(
&self
) -> &[OccupationalCredentialAwardedProperty]
fn get_occupational_credential_awarded( &self ) -> &[OccupationalCredentialAwardedProperty]
Get https://schema.org/occupationalCredentialAwarded from Self
as borrowed slice.
sourcefn take_occupational_credential_awarded(
&mut self
) -> Vec<OccupationalCredentialAwardedProperty>
fn take_occupational_credential_awarded( &mut self ) -> Vec<OccupationalCredentialAwardedProperty>
Take https://schema.org/occupationalCredentialAwarded from Self
as owned vector.
sourcefn get_syllabus_sections(&self) -> &[SyllabusSectionsProperty]
fn get_syllabus_sections(&self) -> &[SyllabusSectionsProperty]
Get https://schema.org/syllabusSections from Self
as borrowed slice.
sourcefn take_syllabus_sections(&mut self) -> Vec<SyllabusSectionsProperty>
fn take_syllabus_sections(&mut self) -> Vec<SyllabusSectionsProperty>
Take https://schema.org/syllabusSections from Self
as owned vector.
sourcefn get_total_historical_enrollment(
&self
) -> &[TotalHistoricalEnrollmentProperty]
fn get_total_historical_enrollment( &self ) -> &[TotalHistoricalEnrollmentProperty]
Get https://schema.org/totalHistoricalEnrollment from Self
as borrowed slice.
sourcefn take_total_historical_enrollment(
&mut self
) -> Vec<TotalHistoricalEnrollmentProperty>
fn take_total_historical_enrollment( &mut self ) -> Vec<TotalHistoricalEnrollmentProperty>
Take https://schema.org/totalHistoricalEnrollment from Self
as owned vector.