pub struct HttpClientOperationDefinitionBuilder { /* private fields */ }Expand description
Builder for HttpClientOperationDefinition.
Implementations§
Source§impl HttpClientOperationDefinitionBuilder
impl HttpClientOperationDefinitionBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the operation.
Sourcepub fn config<VALUE: Into<Vec<Field>>>(&mut self, value: VALUE) -> &mut Self
pub fn config<VALUE: Into<Vec<Field>>>(&mut self, value: VALUE) -> &mut Self
The configuration the operation needs.
Sourcepub fn inputs<VALUE: Into<Vec<Field>>>(&mut self, value: VALUE) -> &mut Self
pub fn inputs<VALUE: Into<Vec<Field>>>(&mut self, value: VALUE) -> &mut Self
Types of the inputs to the operation.
Sourcepub fn path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The path to append to our base URL, processed as a liquid template with each input as part of the template data.
Sourcepub fn codec<VALUE: Into<Option<Codec>>>(&mut self, value: VALUE) -> &mut Self
pub fn codec<VALUE: Into<Option<Codec>>>(&mut self, value: VALUE) -> &mut Self
The codec to use when encoding/decoding data.
Sourcepub fn body<VALUE: Into<Option<LiquidJsonValue>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn body<VALUE: Into<Option<LiquidJsonValue>>>( &mut self, value: VALUE, ) -> &mut Self
The body to send with the request.
Sourcepub fn headers<VALUE: Into<Option<HashMap<String, Vec<String>>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn headers<VALUE: Into<Option<HashMap<String, Vec<String>>>>>( &mut self, value: VALUE, ) -> &mut Self
The headers to send with the request.
Sourcepub fn method<VALUE: Into<HttpMethod>>(&mut self, value: VALUE) -> &mut Self
pub fn method<VALUE: Into<HttpMethod>>(&mut self, value: VALUE) -> &mut Self
The HTTP method to use.
Sourcepub fn build(
&self,
) -> Result<HttpClientOperationDefinition, HttpClientOperationDefinitionBuilderError>
pub fn build( &self, ) -> Result<HttpClientOperationDefinition, HttpClientOperationDefinitionBuilderError>
Trait Implementations§
Source§impl Clone for HttpClientOperationDefinitionBuilder
impl Clone for HttpClientOperationDefinitionBuilder
Source§fn clone(&self) -> HttpClientOperationDefinitionBuilder
fn clone(&self) -> HttpClientOperationDefinitionBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpClientOperationDefinitionBuilder
impl RefUnwindSafe for HttpClientOperationDefinitionBuilder
impl Send for HttpClientOperationDefinitionBuilder
impl Sync for HttpClientOperationDefinitionBuilder
impl Unpin for HttpClientOperationDefinitionBuilder
impl UnwindSafe for HttpClientOperationDefinitionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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