pub struct ResponseHeadDemo {
pub status: u16,
pub reason: String,
pub content_type: String,
pub body_mode: HttpBodyMode,
pub sse_event: Option<String>,
pub sse_data: String,
pub ndjson_record: String,
}Expand description
Report produced by the HTTP response-head cookbook recipe.
Fields§
§status: u16Parsed status code.
reason: StringParsed reason phrase.
content_type: StringParsed content type header.
body_mode: HttpBodyModeParsed body framing mode.
sse_event: Option<String>Event name decoded from a modeled SSE frame.
sse_data: StringPayload decoded from a modeled SSE frame.
ndjson_record: StringFirst NDJSON record decoded from a modeled stream.
Trait Implementations§
Source§impl Clone for ResponseHeadDemo
impl Clone for ResponseHeadDemo
Source§fn clone(&self) -> ResponseHeadDemo
fn clone(&self) -> ResponseHeadDemo
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 ResponseHeadDemo
impl Debug for ResponseHeadDemo
impl Eq for ResponseHeadDemo
Source§impl PartialEq for ResponseHeadDemo
impl PartialEq for ResponseHeadDemo
impl StructuralPartialEq for ResponseHeadDemo
Auto Trait Implementations§
impl Freeze for ResponseHeadDemo
impl RefUnwindSafe for ResponseHeadDemo
impl Send for ResponseHeadDemo
impl Sync for ResponseHeadDemo
impl Unpin for ResponseHeadDemo
impl UnsafeUnpin for ResponseHeadDemo
impl UnwindSafe for ResponseHeadDemo
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