Trait schema_org_types::QuestionTrait
source · pub trait QuestionTrait {
// Required methods
fn get_accepted_answer(&self) -> &[AcceptedAnswerProperty];
fn take_accepted_answer(&mut self) -> Vec<AcceptedAnswerProperty>;
fn get_answer_count(&self) -> &[AnswerCountProperty];
fn take_answer_count(&mut self) -> Vec<AnswerCountProperty>;
fn get_edu_question_type(&self) -> &[EduQuestionTypeProperty];
fn take_edu_question_type(&mut self) -> Vec<EduQuestionTypeProperty>;
fn get_parent_item(&self) -> &[ParentItemProperty];
fn take_parent_item(&mut self) -> Vec<ParentItemProperty>;
fn get_suggested_answer(&self) -> &[SuggestedAnswerProperty];
fn take_suggested_answer(&mut self) -> Vec<SuggestedAnswerProperty>;
}
Expand description
This trait is for properties from https://schema.org/Question.
Required Methods§
sourcefn get_accepted_answer(&self) -> &[AcceptedAnswerProperty]
fn get_accepted_answer(&self) -> &[AcceptedAnswerProperty]
Get https://schema.org/acceptedAnswer from Self
as borrowed slice.
sourcefn take_accepted_answer(&mut self) -> Vec<AcceptedAnswerProperty>
fn take_accepted_answer(&mut self) -> Vec<AcceptedAnswerProperty>
Take https://schema.org/acceptedAnswer from Self
as owned vector.
sourcefn get_answer_count(&self) -> &[AnswerCountProperty]
fn get_answer_count(&self) -> &[AnswerCountProperty]
Get https://schema.org/answerCount from Self
as borrowed slice.
sourcefn take_answer_count(&mut self) -> Vec<AnswerCountProperty>
fn take_answer_count(&mut self) -> Vec<AnswerCountProperty>
Take https://schema.org/answerCount from Self
as owned vector.
sourcefn get_edu_question_type(&self) -> &[EduQuestionTypeProperty]
fn get_edu_question_type(&self) -> &[EduQuestionTypeProperty]
Get https://schema.org/eduQuestionType from Self
as borrowed slice.
sourcefn take_edu_question_type(&mut self) -> Vec<EduQuestionTypeProperty>
fn take_edu_question_type(&mut self) -> Vec<EduQuestionTypeProperty>
Take https://schema.org/eduQuestionType 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.
sourcefn get_suggested_answer(&self) -> &[SuggestedAnswerProperty]
fn get_suggested_answer(&self) -> &[SuggestedAnswerProperty]
Get https://schema.org/suggestedAnswer from Self
as borrowed slice.
sourcefn take_suggested_answer(&mut self) -> Vec<SuggestedAnswerProperty>
fn take_suggested_answer(&mut self) -> Vec<SuggestedAnswerProperty>
Take https://schema.org/suggestedAnswer from Self
as owned vector.