pub struct HttpClientOperationDefinition { /* private fields */ }Expand description
An operation whose implementation is an HTTP request.
Implementations§
Source§impl HttpClientOperationDefinition
impl HttpClientOperationDefinition
Sourcepub fn new_get(
name: &str,
path: &str,
inputs: Vec<Field>,
headers: Option<HashMap<String, Vec<String>>>,
) -> HttpClientOperationDefinitionBuilder
pub fn new_get( name: &str, path: &str, inputs: Vec<Field>, headers: Option<HashMap<String, Vec<String>>>, ) -> HttpClientOperationDefinitionBuilder
Create a new GET operation.
Sourcepub fn new_post(
name: &str,
path: &str,
inputs: Vec<Field>,
body: Option<LiquidJsonValue>,
headers: Option<HashMap<String, Vec<String>>>,
) -> HttpClientOperationDefinitionBuilder
pub fn new_post( name: &str, path: &str, inputs: Vec<Field>, body: Option<LiquidJsonValue>, headers: Option<HashMap<String, Vec<String>>>, ) -> HttpClientOperationDefinitionBuilder
Create a new POST operation.
Sourcepub fn new_put(
name: &str,
path: &str,
inputs: Vec<Field>,
body: Option<LiquidJsonValue>,
headers: Option<HashMap<String, Vec<String>>>,
) -> HttpClientOperationDefinitionBuilder
pub fn new_put( name: &str, path: &str, inputs: Vec<Field>, body: Option<LiquidJsonValue>, headers: Option<HashMap<String, Vec<String>>>, ) -> HttpClientOperationDefinitionBuilder
Create a new PUT operation.
Sourcepub fn new_delete(
name: &str,
path: &str,
inputs: Vec<Field>,
body: Option<LiquidJsonValue>,
headers: Option<HashMap<String, Vec<String>>>,
) -> HttpClientOperationDefinitionBuilder
pub fn new_delete( name: &str, path: &str, inputs: Vec<Field>, body: Option<LiquidJsonValue>, headers: Option<HashMap<String, Vec<String>>>, ) -> HttpClientOperationDefinitionBuilder
Create a new DELETE operation.
Trait Implementations§
Source§impl Clone for HttpClientOperationDefinition
impl Clone for HttpClientOperationDefinition
Source§fn clone(&self) -> HttpClientOperationDefinition
fn clone(&self) -> HttpClientOperationDefinition
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 moreSource§impl From<HttpClientOperationDefinition> for OperationSignature
impl From<HttpClientOperationDefinition> for OperationSignature
Source§fn from(operation: HttpClientOperationDefinition) -> Self
fn from(operation: HttpClientOperationDefinition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HttpClientOperationDefinition
impl PartialEq for HttpClientOperationDefinition
Source§fn eq(&self, other: &HttpClientOperationDefinition) -> bool
fn eq(&self, other: &HttpClientOperationDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<HttpClientOperationDefinition> for HttpClientOperationDefinition
impl TryFrom<HttpClientOperationDefinition> for HttpClientOperationDefinition
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Source§impl TryFrom<HttpClientOperationDefinition> for HttpClientOperationDefinition
impl TryFrom<HttpClientOperationDefinition> for HttpClientOperationDefinition
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for HttpClientOperationDefinition
Auto Trait Implementations§
impl Freeze for HttpClientOperationDefinition
impl RefUnwindSafe for HttpClientOperationDefinition
impl Send for HttpClientOperationDefinition
impl Sync for HttpClientOperationDefinition
impl Unpin for HttpClientOperationDefinition
impl UnwindSafe for HttpClientOperationDefinition
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