pub struct BazaarHttpInput {
pub method: HttpMethod,
pub query_params: Option<AnyJson>,
pub headers: Option<AnyJson>,
pub body_type: Option<String>,
pub body: Option<AnyJson>,
}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<AnyJson>Query parameter examples.
headers: Option<AnyJson>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<AnyJson>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§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<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 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 moreAuto Trait Implementations§
impl Forget for BazaarHttpInput
impl Freeze for BazaarHttpInput
impl Move 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