Trait schema_org_types::VoteActionTrait
source · pub trait VoteActionTrait {
// Required methods
fn get_candidate(&self) -> &[CandidateProperty];
fn take_candidate(&mut self) -> Vec<CandidateProperty>;
}
Expand description
This trait is for properties from https://schema.org/VoteAction.
Required Methods§
sourcefn get_candidate(&self) -> &[CandidateProperty]
fn get_candidate(&self) -> &[CandidateProperty]
Get https://schema.org/candidate from Self
as borrowed slice.
sourcefn take_candidate(&mut self) -> Vec<CandidateProperty>
fn take_candidate(&mut self) -> Vec<CandidateProperty>
Take https://schema.org/candidate from Self
as owned vector.