pub struct HTTPOperationBinding {
pub typ: String,
pub method: Option<String>,
pub query: Option<Schema>,
pub binding_version: Option<String>,
}Expand description
§Examples
channels:
/employees:
subscribe:
bindings:
http:
type: request
method: GET
query:
type: object
required:
- companyId
properties:
companyId:
type: number
minimum: 1
description: The Id of the company.
additionalProperties: false
bindingVersion: '0.1.0'Fields§
§typ: StringRequired. Type of operation. Its value MUST be either request or response.
method: Option<String>When type is request, this is the HTTP method, otherwise it MUST be ignored.
Its value MUST be one of GET, POST, PUT, PATCH, DELETE, HEAD,
OPTIONS, CONNECT, and TRACE.
query: Option<Schema>A Schema object containing the definitions for each query parameter.
This schema MUST be of type object and have a properties key.
binding_version: Option<String>The version of this binding. If omitted, “latest” MUST be assumed.
Trait Implementations§
Source§impl Clone for HTTPOperationBinding
impl Clone for HTTPOperationBinding
Source§fn clone(&self) -> HTTPOperationBinding
fn clone(&self) -> HTTPOperationBinding
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 HTTPOperationBinding
impl Debug for HTTPOperationBinding
Source§impl Default for HTTPOperationBinding
impl Default for HTTPOperationBinding
Source§fn default() -> HTTPOperationBinding
fn default() -> HTTPOperationBinding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HTTPOperationBinding
impl<'de> Deserialize<'de> for HTTPOperationBinding
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 HTTPOperationBinding
impl PartialEq for HTTPOperationBinding
Source§impl Serialize for HTTPOperationBinding
impl Serialize for HTTPOperationBinding
impl StructuralPartialEq for HTTPOperationBinding
Auto Trait Implementations§
impl Freeze for HTTPOperationBinding
impl RefUnwindSafe for HTTPOperationBinding
impl Send for HTTPOperationBinding
impl Sync for HTTPOperationBinding
impl Unpin for HTTPOperationBinding
impl UnwindSafe for HTTPOperationBinding
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