pub struct FileDownload {
pub bytes: Vec<u8>,
pub content_type: Option<String>,
pub content_disposition: Option<String>,
}Expand description
Bytes and HTTP metadata returned by [KalamLinkClient::download_file].
Fields§
§bytes: Vec<u8>Raw file content.
content_type: Option<String>Value of the Content-Type response header, when present.
content_disposition: Option<String>Value of the Content-Disposition response header, when present.
Trait Implementations§
Source§impl Clone for FileDownload
impl Clone for FileDownload
Source§fn clone(&self) -> FileDownload
fn clone(&self) -> FileDownload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileDownload
impl Debug for FileDownload
impl Eq for FileDownload
Source§impl PartialEq for FileDownload
impl PartialEq for FileDownload
Source§fn eq(&self, other: &FileDownload) -> bool
fn eq(&self, other: &FileDownload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileDownload
Auto Trait Implementations§
impl Freeze for FileDownload
impl RefUnwindSafe for FileDownload
impl Send for FileDownload
impl Sync for FileDownload
impl Unpin for FileDownload
impl UnsafeUnpin for FileDownload
impl UnwindSafe for FileDownload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.