Trait schema_org_types::PropertyTrait
source · pub trait PropertyTrait {
// Required methods
fn get_domain_includes(&self) -> &[DomainIncludesProperty];
fn take_domain_includes(&mut self) -> Vec<DomainIncludesProperty>;
fn get_inverse_of(&self) -> &[InverseOfProperty];
fn take_inverse_of(&mut self) -> Vec<InverseOfProperty>;
fn get_range_includes(&self) -> &[RangeIncludesProperty];
fn take_range_includes(&mut self) -> Vec<RangeIncludesProperty>;
fn get_superseded_by(&self) -> &[SupersededByProperty];
fn take_superseded_by(&mut self) -> Vec<SupersededByProperty>;
}
Expand description
This trait is for properties from https://schema.org/Property.
Required Methods§
sourcefn get_domain_includes(&self) -> &[DomainIncludesProperty]
fn get_domain_includes(&self) -> &[DomainIncludesProperty]
Get https://schema.org/domainIncludes from Self
as borrowed slice.
sourcefn take_domain_includes(&mut self) -> Vec<DomainIncludesProperty>
fn take_domain_includes(&mut self) -> Vec<DomainIncludesProperty>
Take https://schema.org/domainIncludes from Self
as owned vector.
sourcefn get_inverse_of(&self) -> &[InverseOfProperty]
fn get_inverse_of(&self) -> &[InverseOfProperty]
Get https://schema.org/inverseOf from Self
as borrowed slice.
sourcefn take_inverse_of(&mut self) -> Vec<InverseOfProperty>
fn take_inverse_of(&mut self) -> Vec<InverseOfProperty>
Take https://schema.org/inverseOf from Self
as owned vector.
sourcefn get_range_includes(&self) -> &[RangeIncludesProperty]
fn get_range_includes(&self) -> &[RangeIncludesProperty]
Get https://schema.org/rangeIncludes from Self
as borrowed slice.
sourcefn take_range_includes(&mut self) -> Vec<RangeIncludesProperty>
fn take_range_includes(&mut self) -> Vec<RangeIncludesProperty>
Take https://schema.org/rangeIncludes from Self
as owned vector.
sourcefn get_superseded_by(&self) -> &[SupersededByProperty]
fn get_superseded_by(&self) -> &[SupersededByProperty]
Get https://schema.org/supersededBy from Self
as borrowed slice.
sourcefn take_superseded_by(&mut self) -> Vec<SupersededByProperty>
fn take_superseded_by(&mut self) -> Vec<SupersededByProperty>
Take https://schema.org/supersededBy from Self
as owned vector.