pub struct InputBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> InputBuilder<S>
impl<S: State> InputBuilder<S>
Sourcepub fn build(self) -> Inputwhere
S: IsComplete,
pub fn build(self) -> Inputwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn input_type(self, value: InputType) -> InputBuilder<SetInputType<S>>where
S::InputType: IsUnset,
pub fn input_type(self, value: InputType) -> InputBuilder<SetInputType<S>>where
S::InputType: IsUnset,
Required.
Sourcepub fn method(self, value: InputMethod) -> InputBuilder<SetMethod<S>>where
S::Method: IsUnset,
pub fn method(self, value: InputMethod) -> InputBuilder<SetMethod<S>>where
S::Method: IsUnset,
Required.
Sourcepub fn body_type(self, value: InputBodyType) -> InputBuilder<SetBodyType<S>>where
S::BodyType: IsUnset,
pub fn body_type(self, value: InputBodyType) -> InputBuilder<SetBodyType<S>>where
S::BodyType: IsUnset,
Sourcepub fn maybe_body_type(
self,
value: Option<InputBodyType>,
) -> InputBuilder<SetBodyType<S>>where
S::BodyType: IsUnset,
pub fn maybe_body_type(
self,
value: Option<InputBodyType>,
) -> InputBuilder<SetBodyType<S>>where
S::BodyType: IsUnset,
Sourcepub fn query_params(
self,
value: Record<FieldDefinition>,
) -> InputBuilder<SetQueryParams<S>>where
S::QueryParams: IsUnset,
pub fn query_params(
self,
value: Record<FieldDefinition>,
) -> InputBuilder<SetQueryParams<S>>where
S::QueryParams: IsUnset,
Sourcepub fn maybe_query_params(
self,
value: Option<Record<FieldDefinition>>,
) -> InputBuilder<SetQueryParams<S>>where
S::QueryParams: IsUnset,
pub fn maybe_query_params(
self,
value: Option<Record<FieldDefinition>>,
) -> InputBuilder<SetQueryParams<S>>where
S::QueryParams: IsUnset,
Sourcepub fn body_fields(
self,
value: Record<FieldDefinition>,
) -> InputBuilder<SetBodyFields<S>>where
S::BodyFields: IsUnset,
pub fn body_fields(
self,
value: Record<FieldDefinition>,
) -> InputBuilder<SetBodyFields<S>>where
S::BodyFields: IsUnset,
Sourcepub fn maybe_body_fields(
self,
value: Option<Record<FieldDefinition>>,
) -> InputBuilder<SetBodyFields<S>>where
S::BodyFields: IsUnset,
pub fn maybe_body_fields(
self,
value: Option<Record<FieldDefinition>>,
) -> InputBuilder<SetBodyFields<S>>where
S::BodyFields: IsUnset,
Sourcepub fn header_fields(
self,
value: Record<FieldDefinition>,
) -> InputBuilder<SetHeaderFields<S>>where
S::HeaderFields: IsUnset,
pub fn header_fields(
self,
value: Record<FieldDefinition>,
) -> InputBuilder<SetHeaderFields<S>>where
S::HeaderFields: IsUnset,
Sourcepub fn maybe_header_fields(
self,
value: Option<Record<FieldDefinition>>,
) -> InputBuilder<SetHeaderFields<S>>where
S::HeaderFields: IsUnset,
pub fn maybe_header_fields(
self,
value: Option<Record<FieldDefinition>>,
) -> InputBuilder<SetHeaderFields<S>>where
S::HeaderFields: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for InputBuilder<S>
impl<S> RefUnwindSafe for InputBuilder<S>
impl<S> Send for InputBuilder<S>
impl<S> Sync for InputBuilder<S>
impl<S> Unpin for InputBuilder<S>
impl<S> UnwindSafe for InputBuilder<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