pub struct CoachesRequestBuilder<H: PersonHydrations = (), S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<H: PersonHydrations, S: State> CoachesRequestBuilder<H, S>
impl<H: PersonHydrations, S: State> CoachesRequestBuilder<H, S>
Sourcepub fn build(self) -> CoachesRequest<H>where
S: IsComplete,
pub fn build(self) -> CoachesRequest<H>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn team_id(
self,
value: impl Into<TeamId>,
) -> CoachesRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn team_id(
self,
value: impl Into<TeamId>,
) -> CoachesRequestBuilder<H, SetTeamId<S>>where
S::TeamId: IsUnset,
Required.
Sourcepub fn season(
self,
value: impl Into<SeasonId>,
) -> CoachesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn season(
self,
value: impl Into<SeasonId>,
) -> CoachesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> CoachesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> CoachesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn date(self, value: NaiveDate) -> CoachesRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
pub fn date(self, value: NaiveDate) -> CoachesRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<NaiveDate>,
) -> CoachesRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<NaiveDate>,
) -> CoachesRequestBuilder<H, SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn hydrations(
self,
value: impl Into<H::RequestData>,
) -> CoachesRequestBuilder<H, SetHydrations<S>>where
S::Hydrations: IsUnset,
pub fn hydrations(
self,
value: impl Into<H::RequestData>,
) -> CoachesRequestBuilder<H, SetHydrations<S>>where
S::Hydrations: IsUnset,
Required.
Trait Implementations§
Source§impl<H: PersonHydrations, S: IsComplete> From<CoachesRequestBuilder<H, S>> for CoachesRequest<H>
impl<H: PersonHydrations, S: IsComplete> From<CoachesRequestBuilder<H, S>> for CoachesRequest<H>
Source§fn from(builder: CoachesRequestBuilder<H, S>) -> Self
fn from(builder: CoachesRequestBuilder<H, S>) -> Self
Converts to this type from the input type.
Source§impl<H: PersonHydrations, S: State + IsComplete> RequestURLBuilderExt for CoachesRequestBuilder<H, S>
impl<H: PersonHydrations, S: State + IsComplete> RequestURLBuilderExt for CoachesRequestBuilder<H, S>
Source§type Built = CoachesRequest<H>
type Built = CoachesRequest<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 CoachesRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Freeze,
impl<H, S> RefUnwindSafe for CoachesRequestBuilder<H, S>where
<H as Hydrations>::RequestData: RefUnwindSafe,
impl<H, S> Send for CoachesRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Send,
impl<H, S> Sync for CoachesRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Sync,
impl<H, S> Unpin for CoachesRequestBuilder<H, S>where
<H as Hydrations>::RequestData: Unpin,
impl<H, S> UnsafeUnpin for CoachesRequestBuilder<H, S>where
<H as Hydrations>::RequestData: UnsafeUnpin,
impl<H, S> UnwindSafe for CoachesRequestBuilder<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