pub struct UploadSpec {
pub filename: String,
pub source: UploadSource,
}Expand description
Specification for one file upload.
Fields§
§filename: StringFilename to expose in Figshare.
source: UploadSourceUpload source.
Implementations§
Trait Implementations§
Source§impl Debug for UploadSpec
impl Debug for UploadSpec
Source§impl UploadSpecLike for UploadSpec
impl UploadSpecLike for UploadSpec
Source§fn source_kind(&self) -> UploadSourceKind
fn source_kind(&self) -> UploadSourceKind
Returns the kind of source backing this upload.
Source§fn content_length(&self) -> Option<u64>
fn content_length(&self) -> Option<u64>
Returns the exact content length when it is already known cheaply.
Source§fn content_type(&self) -> Option<&str>
fn content_type(&self) -> Option<&str>
Returns the HTTP content type when the upload tracks one.
Auto Trait Implementations§
impl Freeze for UploadSpec
impl !RefUnwindSafe for UploadSpec
impl Send for UploadSpec
impl !Sync for UploadSpec
impl Unpin for UploadSpec
impl UnsafeUnpin for UploadSpec
impl !UnwindSafe for UploadSpec
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