pub struct RosterRequestBuilder<H: RosterHydrations = (), S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<H: RosterHydrations, S: State> RosterRequestBuilder<H, S>
impl<H: RosterHydrations, S: State> RosterRequestBuilder<H, S>
Sourcepub fn build(self) -> RosterRequest<H>where
S: IsComplete,
pub fn build(self) -> RosterRequest<H>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn team_id(
self,
value: impl Into<TeamId>,
) -> RosterRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn team_id(
self,
value: impl Into<TeamId>,
) -> RosterRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
Required.
Sourcepub fn season(
self,
value: impl Into<SeasonId>,
) -> RosterRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn season(
self,
value: impl Into<SeasonId>,
) -> RosterRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> RosterRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> RosterRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn date(self, value: NaiveDate) -> RosterRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
pub fn date(self, value: NaiveDate) -> RosterRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<NaiveDate>,
) -> RosterRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<NaiveDate>,
) -> RosterRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn roster_type(
self,
value: impl Into<RosterType>,
) -> RosterRequestBuilder<H, SetRosterType<S>>where
S::RosterType: IsUnset,
pub fn roster_type(
self,
value: impl Into<RosterType>,
) -> RosterRequestBuilder<H, SetRosterType<S>>where
S::RosterType: IsUnset,
Sourcepub fn maybe_roster_type(
self,
value: Option<impl Into<RosterType>>,
) -> RosterRequestBuilder<H, SetRosterType<S>>where
S::RosterType: IsUnset,
pub fn maybe_roster_type(
self,
value: Option<impl Into<RosterType>>,
) -> RosterRequestBuilder<H, SetRosterType<S>>where
S::RosterType: IsUnset,
Sourcepub fn hydrations(
self,
value: impl Into<H::RequestData>,
) -> RosterRequestBuilder<H, SetHydrations<S>>where
S::Hydrations: IsUnset,
pub fn hydrations(
self,
value: impl Into<H::RequestData>,
) -> RosterRequestBuilder<H, SetHydrations<S>>where
S::Hydrations: IsUnset,
Required.
Trait Implementations§
Source§impl<H: RosterHydrations, S: IsComplete> From<RosterRequestBuilder<H, S>> for RosterRequest<H>
impl<H: RosterHydrations, S: IsComplete> From<RosterRequestBuilder<H, S>> for RosterRequest<H>
Source§fn from(builder: RosterRequestBuilder<H, S>) -> Self
fn from(builder: RosterRequestBuilder<H, S>) -> Self
Converts to this type from the input type.
Source§impl<H: RosterHydrations, S: State + IsComplete> RequestURLBuilderExt for RosterRequestBuilder<H, S>
impl<H: RosterHydrations, S: State + IsComplete> RequestURLBuilderExt for RosterRequestBuilder<H, S>
Source§type Built = RosterRequest<H>
type Built = RosterRequest<H>
Built type;
PersonRequest for PersonRequestBuilderfn build_and_get( self, ) -> impl Future<Output = Result<<Self::Built as RequestURL>::Response>>
Auto Trait Implementations§
impl<H, S> Freeze for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Freeze,
impl<H, S> RefUnwindSafe for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: RefUnwindSafe,
impl<H, S> Send for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Send,
impl<H, S> Sync for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Sync,
impl<H, S> Unpin for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Unpin,
impl<H, S> UnsafeUnpin for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: UnsafeUnpin,
impl<H, S> UnwindSafe for RosterRequestBuilder<H, S>where
<H as Hydrations>::RequestData: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more