Trait schema_org_types::GameServerTrait
source · pub trait GameServerTrait {
// Required methods
fn get_game(&self) -> &[GameProperty];
fn take_game(&mut self) -> Vec<GameProperty>;
fn get_players_online(&self) -> &[PlayersOnlineProperty];
fn take_players_online(&mut self) -> Vec<PlayersOnlineProperty>;
fn get_server_status(&self) -> &[ServerStatusProperty];
fn take_server_status(&mut self) -> Vec<ServerStatusProperty>;
}
Expand description
This trait is for properties from https://schema.org/GameServer.
Required Methods§
sourcefn get_game(&self) -> &[GameProperty]
fn get_game(&self) -> &[GameProperty]
Get https://schema.org/game from Self
as borrowed slice.
sourcefn take_game(&mut self) -> Vec<GameProperty>
fn take_game(&mut self) -> Vec<GameProperty>
Take https://schema.org/game from Self
as owned vector.
sourcefn get_players_online(&self) -> &[PlayersOnlineProperty]
fn get_players_online(&self) -> &[PlayersOnlineProperty]
Get https://schema.org/playersOnline from Self
as borrowed slice.
sourcefn take_players_online(&mut self) -> Vec<PlayersOnlineProperty>
fn take_players_online(&mut self) -> Vec<PlayersOnlineProperty>
Take https://schema.org/playersOnline from Self
as owned vector.
sourcefn get_server_status(&self) -> &[ServerStatusProperty]
fn get_server_status(&self) -> &[ServerStatusProperty]
Get https://schema.org/serverStatus from Self
as borrowed slice.
sourcefn take_server_status(&mut self) -> Vec<ServerStatusProperty>
fn take_server_status(&mut self) -> Vec<ServerStatusProperty>
Take https://schema.org/serverStatus from Self
as owned vector.