pub enum HttpResponseBodyShape {
Empty,
ReturnOnly {
ty: TypeSpec,
},
SingleValue {
source: HttpOutputSource,
ty: TypeSpec,
},
Object {
fields: Vec<HttpResponseBodyField>,
},
Stream {
item_source: HttpOutputSource,
item_ty: TypeSpec,
codec: HttpStreamPayloadCodec,
},
}Variants§
Trait Implementations§
Source§impl Clone for HttpResponseBodyShape
impl Clone for HttpResponseBodyShape
Source§fn clone(&self) -> HttpResponseBodyShape
fn clone(&self) -> HttpResponseBodyShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpResponseBodyShape
impl Debug for HttpResponseBodyShape
Source§impl<'de> Deserialize<'de> for HttpResponseBodyShape
impl<'de> Deserialize<'de> for HttpResponseBodyShape
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 HttpResponseBodyShape
impl RefUnwindSafe for HttpResponseBodyShape
impl Send for HttpResponseBodyShape
impl Sync for HttpResponseBodyShape
impl Unpin for HttpResponseBodyShape
impl UnsafeUnpin for HttpResponseBodyShape
impl UnwindSafe for HttpResponseBodyShape
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