pub struct Attachment { /* private fields */ }Expand description
附件响应
用于创建文件下载响应。
Implementations§
Trait Implementations§
Source§impl IntoResponse for Attachment
impl IntoResponse for Attachment
Source§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
将类型转换为 HTTP 响应
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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