pub struct ListSeriesBuilder<'a> { /* private fields */ }Expand description
Builder for ListSeries.
Implementations§
Source§impl<'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>
Source§impl ListSeriesBuilder<'_>
impl ListSeriesBuilder<'_>
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 Selfwhere
I: Iterator<Item = SeriesEmbeds>,
pub fn embeds<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = SeriesEmbeds>,
Add multiple embedded resources to this result
Trait Implementations§
Source§impl<'a> Clone for ListSeriesBuilder<'a>
impl<'a> Clone for ListSeriesBuilder<'a>
Source§fn clone(&self) -> ListSeriesBuilder<'a>
fn clone(&self) -> ListSeriesBuilder<'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 ListSeriesBuilder<'a>
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§
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