Struct speedrun_api::api::series::ListSeriesBuilder
source · [−]pub struct ListSeriesBuilder<'a> { /* private fields */ }Expand description
Builder for ListSeries.
Implementations
sourceimpl<'a> ListSeriesBuilder<'a>
impl<'a> ListSeriesBuilder<'a>
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
When given, performs a fuzzy search across all series names and abbreviations.
sourcepub fn abbreviation<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn abbreviation<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
When given, performs an exact-match search for abbreviation.
sourcepub fn moderator<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn moderator<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
When given, only return series moderated by UserId
sourcepub fn orderby<VALUE: Into<SeriesSorting>>(&mut self, value: VALUE) -> &mut Self
pub fn orderby<VALUE: Into<SeriesSorting>>(&mut self, value: VALUE) -> &mut Self
Sorting options for results.
sourcepub fn build(&self) -> Result<ListSeries<'a>, ListSeriesBuilderError>
pub fn build(&self) -> Result<ListSeries<'a>, ListSeriesBuilderError>
sourceimpl<'a> ListSeriesBuilder<'a>
impl<'a> ListSeriesBuilder<'a>
sourcepub fn embed(&mut self, embed: SeriesEmbeds) -> &mut Self
pub fn embed(&mut self, embed: SeriesEmbeds) -> &mut Self
Add an embedded resource to this result
sourcepub fn embeds<I>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = SeriesEmbeds>,
pub fn embeds<I>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = SeriesEmbeds>,
Add multiple embedded resources to this result
Trait Implementations
sourceimpl<'a> Clone for ListSeriesBuilder<'a>
impl<'a> Clone for ListSeriesBuilder<'a>
sourcefn clone(&self) -> ListSeriesBuilder<'a>
fn clone(&self) -> ListSeriesBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ListSeriesBuilder<'a>
impl<'a> Send for ListSeriesBuilder<'a>
impl<'a> Sync for ListSeriesBuilder<'a>
impl<'a> Unpin for ListSeriesBuilder<'a>
impl<'a> UnwindSafe for ListSeriesBuilder<'a>
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>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more