Struct tea_sdk::runtime::http::HttpResponse
pub struct HttpResponse {
pub status: StatusCode,
pub version: Version,
pub headers: HeaderMap,
pub body: Vec<u8>,
}
Fields§
§status: StatusCode
§version: Version
§headers: HeaderMap
§body: Vec<u8>
Trait Implementations§
§impl Clone for HttpResponse
impl Clone for HttpResponse
§fn clone(&self) -> HttpResponse
fn clone(&self) -> HttpResponse
Returns a copy 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 more§impl Debug for HttpResponse
impl Debug for HttpResponse
§impl<'de> Deserialize<'de> for HttpResponse
impl<'de> Deserialize<'de> for HttpResponse
§fn deserialize<__D>(
__deserializer: __D
) -> Result<HttpResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<HttpResponse, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for HttpResponse
impl Serialize for HttpResponse
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl<B> TryFrom<HttpResponse> for Response<B>where
B: FromHttpBytes,
impl<B> TryFrom<HttpResponse> for Response<B>where B: FromHttpBytes,
§type Error = RuntimeCodec
type Error = RuntimeCodec
The type returned in the event of a conversion error.
§default fn try_from(
value: HttpResponse
) -> Result<Response<B>, <Response<B> as TryFrom<HttpResponse>>::Error>
default fn try_from( value: HttpResponse ) -> Result<Response<B>, <Response<B> as TryFrom<HttpResponse>>::Error>
Performs the conversion.
§impl<B> TryFrom<Response<B>> for HttpResponsewhere
B: IntoHttpBytes,
impl<B> TryFrom<Response<B>> for HttpResponsewhere B: IntoHttpBytes,
§type Error = RuntimeCodec
type Error = RuntimeCodec
The type returned in the event of a conversion error.
§fn try_from(
value: Response<B>
) -> Result<HttpResponse, <HttpResponse as TryFrom<Response<B>>>::Error>
fn try_from( value: Response<B> ) -> Result<HttpResponse, <HttpResponse as TryFrom<Response<B>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnwindSafe for HttpResponse
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