pub struct AwsResponse {
pub status: StatusCode,
pub content_type: String,
pub body: Bytes,
pub headers: HeaderMap,
}Expand description
A response from a service handler.
Fields§
§status: StatusCode§content_type: String§body: Bytes§headers: HeaderMapImplementations§
Source§impl AwsResponse
impl AwsResponse
pub fn xml(status: StatusCode, body: impl Into<Bytes>) -> Self
pub fn json(status: StatusCode, body: impl Into<Bytes>) -> Self
Auto Trait Implementations§
impl !Freeze for AwsResponse
impl RefUnwindSafe for AwsResponse
impl Send for AwsResponse
impl Sync for AwsResponse
impl Unpin for AwsResponse
impl UnsafeUnpin for AwsResponse
impl UnwindSafe for AwsResponse
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