pub struct CreateRunBuilder<'a> { /* private fields */ }Expand description
Builder for CreateRun.
Implementations§
Source§impl<'a> CreateRunBuilder<'a>
impl<'a> CreateRunBuilder<'a>
Sourcepub fn category<VALUE: Into<CategoryId<'a>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn category<VALUE: Into<CategoryId<'a>>>( &mut self, value: VALUE, ) -> &mut Self
Category ID for the run.
Sourcepub fn level<VALUE: Into<LevelId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn level<VALUE: Into<LevelId<'a>>>(&mut self, value: VALUE) -> &mut Self
Level ID for individual level runs.
Sourcepub fn date<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn date<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Optional date the run was performed (defaults to the current date).
Sourcepub fn region<VALUE: Into<RegionId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn region<VALUE: Into<RegionId<'a>>>(&mut self, value: VALUE) -> &mut Self
Optional region for the run. Some games require a region to be submitted.
Sourcepub fn platform<VALUE: Into<PlatformId<'a>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn platform<VALUE: Into<PlatformId<'a>>>( &mut self, value: VALUE, ) -> &mut Self
Optional platform for the run. Some games require a platform to be submitted.
Sourcepub fn verified<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn verified<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If the run has been verified by a moderator. Can only be set if the submitting user is a moderator of the game.
Sourcepub fn emulated<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn emulated<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
When true the run was performed on an emulator (default: false).
Sourcepub fn video<VALUE: Into<Url>>(&mut self, value: VALUE) -> &mut Self
pub fn video<VALUE: Into<Url>>(&mut self, value: VALUE) -> &mut Self
A valid video URL. Optional, but some games require a video to be included.
Sourcepub fn comment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn comment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional comment on the run. Can include additional video URLs.
Sourcepub fn splitsio<VALUE: Into<SplitsIo>>(&mut self, value: VALUE) -> &mut Self
pub fn splitsio<VALUE: Into<SplitsIo>>(&mut self, value: VALUE) -> &mut Self
Splits.io ID or URL for the splits for the run.
Source§impl<'a> CreateRunBuilder<'a>
impl<'a> CreateRunBuilder<'a>
Sourcepub fn realtime_noloads<T: Into<f64>>(&mut self, value: T) -> &mut Self
pub fn realtime_noloads<T: Into<f64>>(&mut self, value: T) -> &mut Self
Real-world time of the run, excluding the loading times
Trait Implementations§
Source§impl<'a> Clone for CreateRunBuilder<'a>
impl<'a> Clone for CreateRunBuilder<'a>
Source§fn clone(&self) -> CreateRunBuilder<'a>
fn clone(&self) -> CreateRunBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for CreateRunBuilder<'a>
impl<'a> RefUnwindSafe for CreateRunBuilder<'a>
impl<'a> Send for CreateRunBuilder<'a>
impl<'a> Sync for CreateRunBuilder<'a>
impl<'a> Unpin for CreateRunBuilder<'a>
impl<'a> UnwindSafe for CreateRunBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more