pub struct HttpClientComponent {
pub resource: BoundIdentifier,
pub codec: Option<Codec>,
pub proxy: Option<Proxy>,
pub timeout: Option<u16>,
pub with: Vec<Field>,
pub operations: Vec<HttpClientOperationDefinition>,
}Expand description
A component whose operations are HTTP requests.
Fields§
§resource: BoundIdentifierThe URL base to use.
codec: Option<Codec>The codec to use when encoding/decoding data. Can be overridden by individual operations.
proxy: Option<Proxy>The proxy HTTP / HTTPS to use.
timeout: Option<u16>The timeout in seconds
with: Vec<Field>Configuration necessary to provide when instantiating the component.
operations: Vec<HttpClientOperationDefinition>A list of operations to expose on this component.
Trait Implementations§
Source§impl Clone for HttpClientComponent
impl Clone for HttpClientComponent
Source§fn clone(&self) -> HttpClientComponent
fn clone(&self) -> HttpClientComponent
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 Debug for HttpClientComponent
impl Debug for HttpClientComponent
Source§impl<'de> Deserialize<'de> for HttpClientComponent
impl<'de> Deserialize<'de> for HttpClientComponent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HttpClientComponent
impl PartialEq for HttpClientComponent
Source§impl Serialize for HttpClientComponent
impl Serialize for HttpClientComponent
Source§impl TryFrom<HttpClientComponent> for HttpClientComponentConfig
impl TryFrom<HttpClientComponent> for HttpClientComponentConfig
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Source§impl TryFrom<HttpClientComponentConfig> for HttpClientComponent
impl TryFrom<HttpClientComponentConfig> for HttpClientComponent
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for HttpClientComponent
Auto Trait Implementations§
impl Freeze for HttpClientComponent
impl RefUnwindSafe for HttpClientComponent
impl Send for HttpClientComponent
impl Sync for HttpClientComponent
impl Unpin for HttpClientComponent
impl UnwindSafe for HttpClientComponent
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> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
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