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§

source

fn get_candidate(&self) -> &[CandidateProperty]

Get https://schema.org/candidate from Self as borrowed slice.

source

fn take_candidate(&mut self) -> Vec<CandidateProperty>

Take https://schema.org/candidate from Self as owned vector.

Implementors§