Trait schema_org_types::LinkRoleTrait
source · pub trait LinkRoleTrait {
// Required methods
fn get_in_language(&self) -> &[InLanguageProperty];
fn take_in_language(&mut self) -> Vec<InLanguageProperty>;
fn get_link_relationship(&self) -> &[LinkRelationshipProperty];
fn take_link_relationship(&mut self) -> Vec<LinkRelationshipProperty>;
}
Expand description
This trait is for properties from https://schema.org/LinkRole.
Required Methods§
sourcefn get_in_language(&self) -> &[InLanguageProperty]
fn get_in_language(&self) -> &[InLanguageProperty]
Get https://schema.org/inLanguage from Self
as borrowed slice.
sourcefn take_in_language(&mut self) -> Vec<InLanguageProperty>
fn take_in_language(&mut self) -> Vec<InLanguageProperty>
Take https://schema.org/inLanguage from Self
as owned vector.
sourcefn get_link_relationship(&self) -> &[LinkRelationshipProperty]
fn get_link_relationship(&self) -> &[LinkRelationshipProperty]
Get https://schema.org/linkRelationship from Self
as borrowed slice.
sourcefn take_link_relationship(&mut self) -> Vec<LinkRelationshipProperty>
fn take_link_relationship(&mut self) -> Vec<LinkRelationshipProperty>
Take https://schema.org/linkRelationship from Self
as owned vector.