pub trait ChooseActionTrait {
    // Required methods
    fn get_action_option(&self) -> &[ActionOptionProperty];
    fn take_action_option(&mut self) -> Vec<ActionOptionProperty>;
    fn get_option(&self) -> &[OptionProperty];
    fn take_option(&mut self) -> Vec<OptionProperty>;
}
Expand description

This trait is for properties from https://schema.org/ChooseAction.

Required Methods§

source

fn get_action_option(&self) -> &[ActionOptionProperty]

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

source

fn take_action_option(&mut self) -> Vec<ActionOptionProperty>

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

source

fn get_option(&self) -> &[OptionProperty]

👎Deprecated: This schema is superseded by https://schema.org/actionOption.

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

source

fn take_option(&mut self) -> Vec<OptionProperty>

👎Deprecated: This schema is superseded by https://schema.org/actionOption.

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

Implementors§