Struct lambda_runtime::MetadataPrelude
source · pub struct MetadataPrelude {
pub status_code: StatusCode,
pub headers: HeaderMap,
pub cookies: Vec<String>,
}
Expand description
Metadata prelude for a stream response.
Fields§
§status_code: StatusCode
The HTTP status code.
headers: HeaderMap
The HTTP headers.
The HTTP cookies.
Trait Implementations§
source§impl Debug for MetadataPrelude
impl Debug for MetadataPrelude
source§impl Default for MetadataPrelude
impl Default for MetadataPrelude
source§fn default() -> MetadataPrelude
fn default() -> MetadataPrelude
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetadataPrelude
impl RefUnwindSafe for MetadataPrelude
impl Send for MetadataPrelude
impl Sync for MetadataPrelude
impl Unpin for MetadataPrelude
impl UnwindSafe for MetadataPrelude
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
source§fn into_response(self) -> FunctionResponse<B, Body>
fn into_response(self) -> FunctionResponse<B, Body>
Convert the type into a FunctionResponse.