pub struct BazaarHttpInput {
pub method: HttpMethod,
pub query_params: Option<Value>,
pub headers: Option<Value>,
pub body_type: Option<String>,
pub body: Option<Value>,
}Expand description
HTTP endpoint input specification.
For query parameter methods (GET, HEAD, DELETE), use query_params and headers.
For body methods (POST, PUT, PATCH), additionally use body_type and body.
Fields§
§method: HttpMethodHTTP method (GET, HEAD, DELETE, POST, PUT, PATCH).
query_params: Option<Value>Query parameter examples.
headers: Option<Value>Custom header examples.
body_type: Option<String>Request body content type. Required for body methods (POST, PUT, PATCH).
One of "json", "form-data", "text".
body: Option<Value>Request body example. Required for body methods (POST, PUT, PATCH).
Implementations§
Source§impl BazaarHttpInput
impl BazaarHttpInput
Sourcepub fn builder() -> BazaarHttpInputBuilder
pub fn builder() -> BazaarHttpInputBuilder
Create an instance of BazaarHttpInput using the builder syntax
Trait Implementations§
Source§impl Clone for BazaarHttpInput
impl Clone for BazaarHttpInput
Source§fn clone(&self) -> BazaarHttpInput
fn clone(&self) -> BazaarHttpInput
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 BazaarHttpInput
impl Debug for BazaarHttpInput
Source§impl<'de> Deserialize<'de> for BazaarHttpInput
impl<'de> Deserialize<'de> for BazaarHttpInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BazaarHttpInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BazaarHttpInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for BazaarHttpInput
impl JsonSchema for BazaarHttpInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for BazaarHttpInput
impl Serialize for BazaarHttpInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BazaarHttpInput
impl RefUnwindSafe for BazaarHttpInput
impl Send for BazaarHttpInput
impl Sync for BazaarHttpInput
impl Unpin for BazaarHttpInput
impl UnsafeUnpin for BazaarHttpInput
impl UnwindSafe for BazaarHttpInput
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