link_common/models/file_download.rs
1//! Response from a FILE column download request.
2
3/// Bytes and HTTP metadata returned by [`KalamLinkClient::download_file`].
4#[derive(Debug, Clone, PartialEq, Eq)]
5pub struct FileDownload {
6 /// Raw file content.
7 pub bytes: Vec<u8>,
8 /// Value of the `Content-Type` response header, when present.
9 pub content_type: Option<String>,
10 /// Value of the `Content-Disposition` response header, when present.
11 pub content_disposition: Option<String>,
12}