Trait schema_org_types::LoseActionTrait
source · pub trait LoseActionTrait {
// Required methods
fn get_winner(&self) -> &[WinnerProperty];
fn take_winner(&mut self) -> Vec<WinnerProperty>;
}
Expand description
This trait is for properties from https://schema.org/LoseAction.
Required Methods§
sourcefn get_winner(&self) -> &[WinnerProperty]
fn get_winner(&self) -> &[WinnerProperty]
Get https://schema.org/winner from Self
as borrowed slice.
sourcefn take_winner(&mut self) -> Vec<WinnerProperty>
fn take_winner(&mut self) -> Vec<WinnerProperty>
Take https://schema.org/winner from Self
as owned vector.