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 copy 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 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