pub struct DraftProspectsRequestBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> DraftProspectsRequestBuilder<S>
impl<S: State> DraftProspectsRequestBuilder<S>
Sourcepub fn build(self) -> DraftProspectsRequestwhere
S: IsComplete,
pub fn build(self) -> DraftProspectsRequestwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn year(
self,
value: impl Into<SeasonId>,
) -> DraftProspectsRequestBuilder<SetYear<S>>where
S::Year: IsUnset,
pub fn year(
self,
value: impl Into<SeasonId>,
) -> DraftProspectsRequestBuilder<SetYear<S>>where
S::Year: IsUnset,
Sourcepub fn maybe_year(
self,
value: Option<impl Into<SeasonId>>,
) -> DraftProspectsRequestBuilder<SetYear<S>>where
S::Year: IsUnset,
pub fn maybe_year(
self,
value: Option<impl Into<SeasonId>>,
) -> DraftProspectsRequestBuilder<SetYear<S>>where
S::Year: IsUnset,
Sourcepub fn limit(
self,
value: impl Into<u32>,
) -> DraftProspectsRequestBuilder<SetLimit<S>>where
S::Limit: IsUnset,
pub fn limit(
self,
value: impl Into<u32>,
) -> DraftProspectsRequestBuilder<SetLimit<S>>where
S::Limit: IsUnset,
Sourcepub fn maybe_limit(
self,
value: Option<impl Into<u32>>,
) -> DraftProspectsRequestBuilder<SetLimit<S>>where
S::Limit: IsUnset,
pub fn maybe_limit(
self,
value: Option<impl Into<u32>>,
) -> DraftProspectsRequestBuilder<SetLimit<S>>where
S::Limit: IsUnset,
Sourcepub fn offset(
self,
value: impl Into<u32>,
) -> DraftProspectsRequestBuilder<SetOffset<S>>where
S::Offset: IsUnset,
pub fn offset(
self,
value: impl Into<u32>,
) -> DraftProspectsRequestBuilder<SetOffset<S>>where
S::Offset: IsUnset,
Sourcepub fn maybe_offset(
self,
value: Option<impl Into<u32>>,
) -> DraftProspectsRequestBuilder<SetOffset<S>>where
S::Offset: IsUnset,
pub fn maybe_offset(
self,
value: Option<impl Into<u32>>,
) -> DraftProspectsRequestBuilder<SetOffset<S>>where
S::Offset: IsUnset,
Sourcepub fn round(
self,
value: impl Into<u32>,
) -> DraftProspectsRequestBuilder<SetRound<S>>where
S::Round: IsUnset,
pub fn round(
self,
value: impl Into<u32>,
) -> DraftProspectsRequestBuilder<SetRound<S>>where
S::Round: IsUnset,
Sourcepub fn maybe_round(
self,
value: Option<impl Into<u32>>,
) -> DraftProspectsRequestBuilder<SetRound<S>>where
S::Round: IsUnset,
pub fn maybe_round(
self,
value: Option<impl Into<u32>>,
) -> DraftProspectsRequestBuilder<SetRound<S>>where
S::Round: IsUnset,
Sourcepub fn drafted_only(
self,
value: impl Into<bool>,
) -> DraftProspectsRequestBuilder<SetDraftedOnly<S>>where
S::DraftedOnly: IsUnset,
pub fn drafted_only(
self,
value: impl Into<bool>,
) -> DraftProspectsRequestBuilder<SetDraftedOnly<S>>where
S::DraftedOnly: IsUnset,
Sourcepub fn maybe_drafted_only(
self,
value: Option<impl Into<bool>>,
) -> DraftProspectsRequestBuilder<SetDraftedOnly<S>>where
S::DraftedOnly: IsUnset,
pub fn maybe_drafted_only(
self,
value: Option<impl Into<bool>>,
) -> DraftProspectsRequestBuilder<SetDraftedOnly<S>>where
S::DraftedOnly: IsUnset,
Sourcepub fn last_name(
self,
value: impl Into<char>,
) -> DraftProspectsRequestBuilder<SetLastName<S>>where
S::LastName: IsUnset,
pub fn last_name(
self,
value: impl Into<char>,
) -> DraftProspectsRequestBuilder<SetLastName<S>>where
S::LastName: IsUnset,
Sourcepub fn maybe_last_name(
self,
value: Option<impl Into<char>>,
) -> DraftProspectsRequestBuilder<SetLastName<S>>where
S::LastName: IsUnset,
pub fn maybe_last_name(
self,
value: Option<impl Into<char>>,
) -> DraftProspectsRequestBuilder<SetLastName<S>>where
S::LastName: IsUnset,
Sourcepub fn school(
self,
value: impl Into<char>,
) -> DraftProspectsRequestBuilder<SetSchool<S>>where
S::School: IsUnset,
pub fn school(
self,
value: impl Into<char>,
) -> DraftProspectsRequestBuilder<SetSchool<S>>where
S::School: IsUnset,
Sourcepub fn maybe_school(
self,
value: Option<impl Into<char>>,
) -> DraftProspectsRequestBuilder<SetSchool<S>>where
S::School: IsUnset,
pub fn maybe_school(
self,
value: Option<impl Into<char>>,
) -> DraftProspectsRequestBuilder<SetSchool<S>>where
S::School: IsUnset,
Sourcepub fn position(
self,
value: impl Into<PositionCode>,
) -> DraftProspectsRequestBuilder<SetPosition<S>>where
S::Position: IsUnset,
pub fn position(
self,
value: impl Into<PositionCode>,
) -> DraftProspectsRequestBuilder<SetPosition<S>>where
S::Position: IsUnset,
Sourcepub fn maybe_position(
self,
value: Option<impl Into<PositionCode>>,
) -> DraftProspectsRequestBuilder<SetPosition<S>>where
S::Position: IsUnset,
pub fn maybe_position(
self,
value: Option<impl Into<PositionCode>>,
) -> DraftProspectsRequestBuilder<SetPosition<S>>where
S::Position: IsUnset,
Sourcepub fn team_id(
self,
value: impl Into<TeamId>,
) -> DraftProspectsRequestBuilder<SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn team_id(
self,
value: impl Into<TeamId>,
) -> DraftProspectsRequestBuilder<SetTeamId<S>>where
S::TeamId: IsUnset,
Sourcepub fn maybe_team_id(
self,
value: Option<impl Into<TeamId>>,
) -> DraftProspectsRequestBuilder<SetTeamId<S>>where
S::TeamId: IsUnset,
pub fn maybe_team_id(
self,
value: Option<impl Into<TeamId>>,
) -> DraftProspectsRequestBuilder<SetTeamId<S>>where
S::TeamId: IsUnset,
Sourcepub fn home_country(
self,
value: impl Into<String>,
) -> DraftProspectsRequestBuilder<SetHomeCountry<S>>where
S::HomeCountry: IsUnset,
pub fn home_country(
self,
value: impl Into<String>,
) -> DraftProspectsRequestBuilder<SetHomeCountry<S>>where
S::HomeCountry: IsUnset,
Sourcepub fn maybe_home_country(
self,
value: Option<impl Into<String>>,
) -> DraftProspectsRequestBuilder<SetHomeCountry<S>>where
S::HomeCountry: IsUnset,
pub fn maybe_home_country(
self,
value: Option<impl Into<String>>,
) -> DraftProspectsRequestBuilder<SetHomeCountry<S>>where
S::HomeCountry: IsUnset,
Sourcepub fn player_id(
self,
value: impl Into<PersonId>,
) -> DraftProspectsRequestBuilder<SetPlayerId<S>>where
S::PlayerId: IsUnset,
pub fn player_id(
self,
value: impl Into<PersonId>,
) -> DraftProspectsRequestBuilder<SetPlayerId<S>>where
S::PlayerId: IsUnset,
Sourcepub fn maybe_player_id(
self,
value: Option<impl Into<PersonId>>,
) -> DraftProspectsRequestBuilder<SetPlayerId<S>>where
S::PlayerId: IsUnset,
pub fn maybe_player_id(
self,
value: Option<impl Into<PersonId>>,
) -> DraftProspectsRequestBuilder<SetPlayerId<S>>where
S::PlayerId: IsUnset,
Trait Implementations§
Source§impl<S: IsComplete> From<DraftProspectsRequestBuilder<S>> for DraftProspectsRequest
impl<S: IsComplete> From<DraftProspectsRequestBuilder<S>> for DraftProspectsRequest
Source§fn from(builder: DraftProspectsRequestBuilder<S>) -> Self
fn from(builder: DraftProspectsRequestBuilder<S>) -> Self
Converts to this type from the input type.
Source§impl<S: State + IsComplete> RequestURLBuilderExt for DraftProspectsRequestBuilder<S>
impl<S: State + IsComplete> RequestURLBuilderExt for DraftProspectsRequestBuilder<S>
Source§type Built = DraftProspectsRequest
type Built = DraftProspectsRequest
Built type;
PersonRequest for PersonRequestBuilderfn build_and_get( self, ) -> impl Future<Output = Result<<Self::Built as RequestURL>::Response>>
Auto Trait Implementations§
impl<S> Freeze for DraftProspectsRequestBuilder<S>
impl<S> RefUnwindSafe for DraftProspectsRequestBuilder<S>
impl<S> Send for DraftProspectsRequestBuilder<S>
impl<S> Sync for DraftProspectsRequestBuilder<S>
impl<S> Unpin for DraftProspectsRequestBuilder<S>
impl<S> UnsafeUnpin for DraftProspectsRequestBuilder<S>
impl<S> UnwindSafe for DraftProspectsRequestBuilder<S>
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