#[non_exhaustive]pub struct S3Response<T> {
pub output: T,
pub headers: HeaderMap<HeaderValue>,
pub extensions: Extensions,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.output: T
Operation output
headers: HeaderMap<HeaderValue>
Response headers, overrides the headers in output
.
extensions: Extensions
Response extensions.
It is used to pass custom data between middlewares.
Implementations§
Source§impl<T> S3Response<T>
impl<T> S3Response<T>
pub fn new(output: T) -> Self
pub fn with_headers(output: T, headers: HeaderMap<HeaderValue>) -> Self
pub fn map_output<U>(self, f: impl FnOnce(T) -> U) -> S3Response<U>
Auto Trait Implementations§
impl<T> Freeze for S3Response<T>where
T: Freeze,
impl<T> !RefUnwindSafe for S3Response<T>
impl<T> Send for S3Response<T>where
T: Send,
impl<T> Sync for S3Response<T>where
T: Sync,
impl<T> Unpin for S3Response<T>where
T: Unpin,
impl<T> !UnwindSafe for S3Response<T>
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