pub struct VenuesRequestBuilder<H: VenueHydrations, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<H: VenueHydrations, S: State> VenuesRequestBuilder<H, S>
impl<H: VenueHydrations, S: State> VenuesRequestBuilder<H, S>
Sourcepub fn build(self) -> VenuesRequest<H>where
S: IsComplete,
pub fn build(self) -> VenuesRequest<H>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn sport_id(
self,
value: impl Into<SportId>,
) -> VenuesRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
pub fn sport_id(
self,
value: impl Into<SportId>,
) -> VenuesRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> VenuesRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
pub fn maybe_sport_id(
self,
value: Option<impl Into<SportId>>,
) -> VenuesRequestBuilder<H, SetSportId<S>>where
S::SportId: IsUnset,
Sourcepub fn venue_ids(
self,
value: Vec<VenueId>,
) -> VenuesRequestBuilder<H, SetVenueIds<S>>where
S::VenueIds: IsUnset,
pub fn venue_ids(
self,
value: Vec<VenueId>,
) -> VenuesRequestBuilder<H, SetVenueIds<S>>where
S::VenueIds: IsUnset,
Sourcepub fn maybe_venue_ids(
self,
value: Option<Vec<VenueId>>,
) -> VenuesRequestBuilder<H, SetVenueIds<S>>where
S::VenueIds: IsUnset,
pub fn maybe_venue_ids(
self,
value: Option<Vec<VenueId>>,
) -> VenuesRequestBuilder<H, SetVenueIds<S>>where
S::VenueIds: IsUnset,
Sourcepub fn season(
self,
value: impl Into<SeasonId>,
) -> VenuesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn season(
self,
value: impl Into<SeasonId>,
) -> VenuesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Sourcepub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> VenuesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
pub fn maybe_season(
self,
value: Option<impl Into<SeasonId>>,
) -> VenuesRequestBuilder<H, SetSeason<S>>where
S::Season: IsUnset,
Trait Implementations§
Source§impl<H: VenueHydrations, S: IsComplete> From<VenuesRequestBuilder<H, S>> for VenuesRequest<H>
impl<H: VenueHydrations, S: IsComplete> From<VenuesRequestBuilder<H, S>> for VenuesRequest<H>
Source§fn from(builder: VenuesRequestBuilder<H, S>) -> Self
fn from(builder: VenuesRequestBuilder<H, S>) -> Self
Converts to this type from the input type.
Source§impl<H: VenueHydrations, S: State + IsComplete> RequestURLBuilderExt for VenuesRequestBuilder<H, S>
impl<H: VenueHydrations, S: State + IsComplete> RequestURLBuilderExt for VenuesRequestBuilder<H, S>
Source§type Built = VenuesRequest<H>
type Built = VenuesRequest<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 VenuesRequestBuilder<H, S>
impl<H, S> RefUnwindSafe for VenuesRequestBuilder<H, S>
impl<H, S> Send for VenuesRequestBuilder<H, S>
impl<H, S> Sync for VenuesRequestBuilder<H, S>
impl<H, S> Unpin for VenuesRequestBuilder<H, S>
impl<H, S> UnsafeUnpin for VenuesRequestBuilder<H, S>
impl<H, S> UnwindSafe for VenuesRequestBuilder<H, 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