pub struct StartRace {Show 19 fields
pub goal: String,
pub goal_is_custom: bool,
pub team_race: bool,
pub invitational: bool,
pub unlisted: bool,
pub info_user: String,
pub info_bot: String,
pub require_even_teams: bool,
pub start_delay: u8,
pub time_limit: u8,
pub time_limit_auto_complete: bool,
pub streaming_required: Option<bool>,
pub auto_start: bool,
pub allow_comments: bool,
pub hide_comments: bool,
pub allow_prerace_chat: bool,
pub allow_midrace_chat: bool,
pub allow_non_entrant_chat: bool,
pub chat_message_delay: u8,
}Fields§
§goal: String§goal_is_custom: bool§team_race: bool§invitational: bool§unlisted: bool§info_user: String§info_bot: String§require_even_teams: bool§start_delay: u8Number of seconds the countdown should run for. Must be in 10..=60.
time_limit: u8Maximum number of hours the race is allowed to run for. Must be in 1..=72.
time_limit_auto_complete: bool§streaming_required: Option<bool>§auto_start: bool§allow_comments: bool§hide_comments: bool§allow_prerace_chat: bool§allow_midrace_chat: bool§allow_non_entrant_chat: bool§chat_message_delay: u8Number of seconds to hold a message for before displaying it. Doesn’t affect race monitors or moderators. Must be in 0..=90.
Implementations§
source§impl StartRace
impl StartRace
sourcepub async fn start(
&self,
access_token: &str,
client: &Client,
category: &str
) -> Result<String, Error>
pub async fn start(
&self,
access_token: &str,
client: &Client,
category: &str
) -> Result<String, Error>
Creates a race room with the specified configuration and returns its slug.
An access token can be obtained using authorize.