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: StatusCodeThe HTTP status code.
headers: HeaderMapThe HTTP headers.
The HTTP cookies.
Trait Implementations§
Source§impl Clone for MetadataPrelude
impl Clone for MetadataPrelude
Source§fn clone(&self) -> MetadataPrelude
fn clone(&self) -> MetadataPrelude
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 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
Source§impl<'de> Deserialize<'de> for MetadataPrelude
impl<'de> Deserialize<'de> for MetadataPrelude
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 MetadataPrelude
impl PartialEq for MetadataPrelude
Source§impl Serialize for MetadataPrelude
impl Serialize for MetadataPrelude
impl Eq for MetadataPrelude
impl StructuralPartialEq for MetadataPrelude
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.