Trait schema_org_types::LegislationTrait
source · pub trait LegislationTrait {
Show 26 methods
// Required methods
fn get_jurisdiction(&self) -> &[JurisdictionProperty];
fn take_jurisdiction(&mut self) -> Vec<JurisdictionProperty>;
fn get_legislation_applies(&self) -> &[LegislationAppliesProperty];
fn take_legislation_applies(&mut self) -> Vec<LegislationAppliesProperty>;
fn get_legislation_changes(&self) -> &[LegislationChangesProperty];
fn take_legislation_changes(&mut self) -> Vec<LegislationChangesProperty>;
fn get_legislation_consolidates(&self) -> &[LegislationConsolidatesProperty];
fn take_legislation_consolidates(
&mut self
) -> Vec<LegislationConsolidatesProperty>;
fn get_legislation_date(&self) -> &[LegislationDateProperty];
fn take_legislation_date(&mut self) -> Vec<LegislationDateProperty>;
fn get_legislation_date_version(&self) -> &[LegislationDateVersionProperty];
fn take_legislation_date_version(
&mut self
) -> Vec<LegislationDateVersionProperty>;
fn get_legislation_identifier(&self) -> &[LegislationIdentifierProperty];
fn take_legislation_identifier(
&mut self
) -> Vec<LegislationIdentifierProperty>;
fn get_legislation_jurisdiction(&self) -> &[LegislationJurisdictionProperty];
fn take_legislation_jurisdiction(
&mut self
) -> Vec<LegislationJurisdictionProperty>;
fn get_legislation_legal_force(&self) -> &[LegislationLegalForceProperty];
fn take_legislation_legal_force(
&mut self
) -> Vec<LegislationLegalForceProperty>;
fn get_legislation_passed_by(&self) -> &[LegislationPassedByProperty];
fn take_legislation_passed_by(&mut self) -> Vec<LegislationPassedByProperty>;
fn get_legislation_responsible(&self) -> &[LegislationResponsibleProperty];
fn take_legislation_responsible(
&mut self
) -> Vec<LegislationResponsibleProperty>;
fn get_legislation_transposes(&self) -> &[LegislationTransposesProperty];
fn take_legislation_transposes(
&mut self
) -> Vec<LegislationTransposesProperty>;
fn get_legislation_type(&self) -> &[LegislationTypeProperty];
fn take_legislation_type(&mut self) -> Vec<LegislationTypeProperty>;
}
Expand description
This trait is for properties from https://schema.org/Legislation.
Required Methods§
sourcefn get_jurisdiction(&self) -> &[JurisdictionProperty]
fn get_jurisdiction(&self) -> &[JurisdictionProperty]
Get https://schema.org/jurisdiction from Self
as borrowed slice.
sourcefn take_jurisdiction(&mut self) -> Vec<JurisdictionProperty>
fn take_jurisdiction(&mut self) -> Vec<JurisdictionProperty>
Take https://schema.org/jurisdiction from Self
as owned vector.
sourcefn get_legislation_applies(&self) -> &[LegislationAppliesProperty]
fn get_legislation_applies(&self) -> &[LegislationAppliesProperty]
Get https://schema.org/legislationApplies from Self
as borrowed slice.
sourcefn take_legislation_applies(&mut self) -> Vec<LegislationAppliesProperty>
fn take_legislation_applies(&mut self) -> Vec<LegislationAppliesProperty>
Take https://schema.org/legislationApplies from Self
as owned vector.
sourcefn get_legislation_changes(&self) -> &[LegislationChangesProperty]
fn get_legislation_changes(&self) -> &[LegislationChangesProperty]
Get https://schema.org/legislationChanges from Self
as borrowed slice.
sourcefn take_legislation_changes(&mut self) -> Vec<LegislationChangesProperty>
fn take_legislation_changes(&mut self) -> Vec<LegislationChangesProperty>
Take https://schema.org/legislationChanges from Self
as owned vector.
sourcefn get_legislation_consolidates(&self) -> &[LegislationConsolidatesProperty]
fn get_legislation_consolidates(&self) -> &[LegislationConsolidatesProperty]
Get https://schema.org/legislationConsolidates from Self
as borrowed slice.
sourcefn take_legislation_consolidates(
&mut self
) -> Vec<LegislationConsolidatesProperty>
fn take_legislation_consolidates( &mut self ) -> Vec<LegislationConsolidatesProperty>
Take https://schema.org/legislationConsolidates from Self
as owned vector.
sourcefn get_legislation_date(&self) -> &[LegislationDateProperty]
fn get_legislation_date(&self) -> &[LegislationDateProperty]
Get https://schema.org/legislationDate from Self
as borrowed slice.
sourcefn take_legislation_date(&mut self) -> Vec<LegislationDateProperty>
fn take_legislation_date(&mut self) -> Vec<LegislationDateProperty>
Take https://schema.org/legislationDate from Self
as owned vector.
sourcefn get_legislation_date_version(&self) -> &[LegislationDateVersionProperty]
fn get_legislation_date_version(&self) -> &[LegislationDateVersionProperty]
Get https://schema.org/legislationDateVersion from Self
as borrowed slice.
sourcefn take_legislation_date_version(
&mut self
) -> Vec<LegislationDateVersionProperty>
fn take_legislation_date_version( &mut self ) -> Vec<LegislationDateVersionProperty>
Take https://schema.org/legislationDateVersion from Self
as owned vector.
sourcefn get_legislation_identifier(&self) -> &[LegislationIdentifierProperty]
fn get_legislation_identifier(&self) -> &[LegislationIdentifierProperty]
Get https://schema.org/legislationIdentifier from Self
as borrowed slice.
sourcefn take_legislation_identifier(&mut self) -> Vec<LegislationIdentifierProperty>
fn take_legislation_identifier(&mut self) -> Vec<LegislationIdentifierProperty>
Take https://schema.org/legislationIdentifier from Self
as owned vector.
sourcefn get_legislation_jurisdiction(&self) -> &[LegislationJurisdictionProperty]
fn get_legislation_jurisdiction(&self) -> &[LegislationJurisdictionProperty]
Get https://schema.org/legislationJurisdiction from Self
as borrowed slice.
sourcefn take_legislation_jurisdiction(
&mut self
) -> Vec<LegislationJurisdictionProperty>
fn take_legislation_jurisdiction( &mut self ) -> Vec<LegislationJurisdictionProperty>
Take https://schema.org/legislationJurisdiction from Self
as owned vector.
sourcefn get_legislation_legal_force(&self) -> &[LegislationLegalForceProperty]
fn get_legislation_legal_force(&self) -> &[LegislationLegalForceProperty]
Get https://schema.org/legislationLegalForce from Self
as borrowed slice.
sourcefn take_legislation_legal_force(&mut self) -> Vec<LegislationLegalForceProperty>
fn take_legislation_legal_force(&mut self) -> Vec<LegislationLegalForceProperty>
Take https://schema.org/legislationLegalForce from Self
as owned vector.
sourcefn get_legislation_passed_by(&self) -> &[LegislationPassedByProperty]
fn get_legislation_passed_by(&self) -> &[LegislationPassedByProperty]
Get https://schema.org/legislationPassedBy from Self
as borrowed slice.
sourcefn take_legislation_passed_by(&mut self) -> Vec<LegislationPassedByProperty>
fn take_legislation_passed_by(&mut self) -> Vec<LegislationPassedByProperty>
Take https://schema.org/legislationPassedBy from Self
as owned vector.
sourcefn get_legislation_responsible(&self) -> &[LegislationResponsibleProperty]
fn get_legislation_responsible(&self) -> &[LegislationResponsibleProperty]
Get https://schema.org/legislationResponsible from Self
as borrowed slice.
sourcefn take_legislation_responsible(
&mut self
) -> Vec<LegislationResponsibleProperty>
fn take_legislation_responsible( &mut self ) -> Vec<LegislationResponsibleProperty>
Take https://schema.org/legislationResponsible from Self
as owned vector.
sourcefn get_legislation_transposes(&self) -> &[LegislationTransposesProperty]
fn get_legislation_transposes(&self) -> &[LegislationTransposesProperty]
Get https://schema.org/legislationTransposes from Self
as borrowed slice.
sourcefn take_legislation_transposes(&mut self) -> Vec<LegislationTransposesProperty>
fn take_legislation_transposes(&mut self) -> Vec<LegislationTransposesProperty>
Take https://schema.org/legislationTransposes from Self
as owned vector.
sourcefn get_legislation_type(&self) -> &[LegislationTypeProperty]
fn get_legislation_type(&self) -> &[LegislationTypeProperty]
Get https://schema.org/legislationType from Self
as borrowed slice.
sourcefn take_legislation_type(&mut self) -> Vec<LegislationTypeProperty>
fn take_legislation_type(&mut self) -> Vec<LegislationTypeProperty>
Take https://schema.org/legislationType from Self
as owned vector.