pub struct FileResponse {
pub file: File,
pub filename: Option<String>,
pub caption: Option<String>,
}Expand description
File response data
Fields§
§file: FileThe file to send
filename: Option<String>Optional filename (used for content-disposition)
caption: Option<String>Optional caption to accompany the file
Auto Trait Implementations§
impl !Freeze for FileResponse
impl !RefUnwindSafe for FileResponse
impl Send for FileResponse
impl Sync for FileResponse
impl Unpin for FileResponse
impl UnsafeUnpin for FileResponse
impl !UnwindSafe for FileResponse
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