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: u8
Number of seconds the countdown should run for. Must be in 10..=60
.
time_limit: u8
Maximum 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: u8
Number of seconds to hold a message for before displaying it. Doesn’t affect race monitors or moderators. Must be in 0..=90
.
Implementations
sourceimpl 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
.
pub async fn start_with_host(
&self,
host: &str,
access_token: &str,
client: &Client,
category: &str
) -> Result<String, Error>
Auto Trait Implementations
impl RefUnwindSafe for StartRace
impl Send for StartRace
impl Sync for StartRace
impl Unpin for StartRace
impl UnwindSafe for StartRace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more