Trait schema_org_types::GameTrait
source · pub trait GameTrait {
// Required methods
fn get_character_attribute(&self) -> &[CharacterAttributeProperty];
fn take_character_attribute(&mut self) -> Vec<CharacterAttributeProperty>;
fn get_game_item(&self) -> &[GameItemProperty];
fn take_game_item(&mut self) -> Vec<GameItemProperty>;
fn get_game_location(&self) -> &[GameLocationProperty];
fn take_game_location(&mut self) -> Vec<GameLocationProperty>;
fn get_number_of_players(&self) -> &[NumberOfPlayersProperty];
fn take_number_of_players(&mut self) -> Vec<NumberOfPlayersProperty>;
fn get_quest(&self) -> &[QuestProperty];
fn take_quest(&mut self) -> Vec<QuestProperty>;
}
Expand description
This trait is for properties from https://schema.org/Game.
Required Methods§
sourcefn get_character_attribute(&self) -> &[CharacterAttributeProperty]
fn get_character_attribute(&self) -> &[CharacterAttributeProperty]
Get https://schema.org/characterAttribute from Self
as borrowed slice.
sourcefn take_character_attribute(&mut self) -> Vec<CharacterAttributeProperty>
fn take_character_attribute(&mut self) -> Vec<CharacterAttributeProperty>
Take https://schema.org/characterAttribute from Self
as owned vector.
sourcefn get_game_item(&self) -> &[GameItemProperty]
fn get_game_item(&self) -> &[GameItemProperty]
Get https://schema.org/gameItem from Self
as borrowed slice.
sourcefn take_game_item(&mut self) -> Vec<GameItemProperty>
fn take_game_item(&mut self) -> Vec<GameItemProperty>
Take https://schema.org/gameItem from Self
as owned vector.
sourcefn get_game_location(&self) -> &[GameLocationProperty]
fn get_game_location(&self) -> &[GameLocationProperty]
Get https://schema.org/gameLocation from Self
as borrowed slice.
sourcefn take_game_location(&mut self) -> Vec<GameLocationProperty>
fn take_game_location(&mut self) -> Vec<GameLocationProperty>
Take https://schema.org/gameLocation from Self
as owned vector.
sourcefn get_number_of_players(&self) -> &[NumberOfPlayersProperty]
fn get_number_of_players(&self) -> &[NumberOfPlayersProperty]
Get https://schema.org/numberOfPlayers from Self
as borrowed slice.
sourcefn take_number_of_players(&mut self) -> Vec<NumberOfPlayersProperty>
fn take_number_of_players(&mut self) -> Vec<NumberOfPlayersProperty>
Take https://schema.org/numberOfPlayers from Self
as owned vector.
sourcefn get_quest(&self) -> &[QuestProperty]
fn get_quest(&self) -> &[QuestProperty]
Get https://schema.org/quest from Self
as borrowed slice.
sourcefn take_quest(&mut self) -> Vec<QuestProperty>
fn take_quest(&mut self) -> Vec<QuestProperty>
Take https://schema.org/quest from Self
as owned vector.