Trait schema_org_types::AnswerTrait
source · pub trait AnswerTrait {
// Required methods
fn get_answer_explanation(&self) -> &[AnswerExplanationProperty];
fn take_answer_explanation(&mut self) -> Vec<AnswerExplanationProperty>;
fn get_parent_item(&self) -> &[ParentItemProperty];
fn take_parent_item(&mut self) -> Vec<ParentItemProperty>;
}
Expand description
This trait is for properties from https://schema.org/Answer.
Required Methods§
sourcefn get_answer_explanation(&self) -> &[AnswerExplanationProperty]
fn get_answer_explanation(&self) -> &[AnswerExplanationProperty]
Get https://schema.org/answerExplanation from Self
as borrowed slice.
sourcefn take_answer_explanation(&mut self) -> Vec<AnswerExplanationProperty>
fn take_answer_explanation(&mut self) -> Vec<AnswerExplanationProperty>
Take https://schema.org/answerExplanation from Self
as owned vector.
sourcefn get_parent_item(&self) -> &[ParentItemProperty]
fn get_parent_item(&self) -> &[ParentItemProperty]
Get https://schema.org/parentItem from Self
as borrowed slice.
sourcefn take_parent_item(&mut self) -> Vec<ParentItemProperty>
fn take_parent_item(&mut self) -> Vec<ParentItemProperty>
Take https://schema.org/parentItem from Self
as owned vector.