pub struct UploadResponse {
pub id: String,
pub url: String,
pub direct_url: String,
pub filename: String,
pub mimetype: String,
pub expiry_date: Option<DateTime<Utc>>,
pub delete_key: String,
}
Expand description
The JSON API response after uploading a file
Fields§
§id: String
ID of the upload (used in URL)
url: String
url to the upload
direct_url: String
direct url to download the raw uploaded file
filename: String
the name of the file
mimetype: String
the MIME type of the uploaded file
expiry_date: Option<DateTime<Utc>>
expiration date in RFC 3339 format, null if the upload never expires
delete_key: String
key to delete the upload later before it’s expired
Trait Implementations§
Source§impl Clone for UploadResponse
impl Clone for UploadResponse
Source§fn clone(&self) -> UploadResponse
fn clone(&self) -> UploadResponse
Returns a copy of the value. Read more
1.0.0 · 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 UploadResponse
impl Debug for UploadResponse
Auto Trait Implementations§
impl Freeze for UploadResponse
impl RefUnwindSafe for UploadResponse
impl Send for UploadResponse
impl Sync for UploadResponse
impl Unpin for UploadResponse
impl UnwindSafe for UploadResponse
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