pub enum HttpRequestBodyShape {
Empty,
SingleValue {
source_param: String,
wire_name: String,
flatten: bool,
ty: TypeSpec,
},
Object {
fields: Vec<HttpRequestBodyField>,
},
Stream {
source_param: String,
wire_name: String,
item_ty: TypeSpec,
codec: HttpStreamPayloadCodec,
},
}Variants§
Implementations§
Source§impl HttpRequestBodyShape
impl HttpRequestBodyShape
Sourcepub fn byte_parameter(&self) -> Option<&str>
pub fn byte_parameter(&self) -> Option<&str>
Returns the source parameter carried as a single raw byte body.
Trait Implementations§
Source§impl Clone for HttpRequestBodyShape
impl Clone for HttpRequestBodyShape
Source§impl Debug for HttpRequestBodyShape
impl Debug for HttpRequestBodyShape
Source§impl<'de> Deserialize<'de> for HttpRequestBodyShape
impl<'de> Deserialize<'de> for HttpRequestBodyShape
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
Auto Trait Implementations§
impl Freeze for HttpRequestBodyShape
impl RefUnwindSafe for HttpRequestBodyShape
impl Send for HttpRequestBodyShape
impl Sync for HttpRequestBodyShape
impl Unpin for HttpRequestBodyShape
impl UnsafeUnpin for HttpRequestBodyShape
impl UnwindSafe for HttpRequestBodyShape
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