Struct wick_config::v1::HttpClientComponent
source · pub struct HttpClientComponent {
pub resource: String,
pub codec: Option<Codec>,
pub with: Vec<Field>,
pub operations: Vec<HttpClientOperationDefinition>,
}Expand description
A component whose operations are HTTP requests.
Fields§
§resource: StringThe URL base to use.
codec: Option<Codec>The codec to use when encoding/decoding data. Can be overridden by individual operations.
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 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 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<HttpClientComponent> for HttpClientComponent
impl PartialEq<HttpClientComponent> for HttpClientComponent
source§fn eq(&self, other: &HttpClientComponent) -> bool
fn eq(&self, other: &HttpClientComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HttpClientComponent
impl Serialize for HttpClientComponent
source§impl TryFrom<HttpClientComponent> for HttpClientComponentConfig
impl TryFrom<HttpClientComponent> for HttpClientComponentConfig
§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
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for HttpClientComponent
Auto Trait Implementations§
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