pub struct UploadCreateParams {
pub bytes: i64,
pub filename: String,
pub mime_type: String,
pub purpose: Value,
pub expires_after: Option<ExpiresAfter>,
}Fields§
§bytes: i64The number of bytes in the file you are uploading.
filename: StringThe name of the file to upload.
mime_type: StringThe MIME type of the file.
purpose: ValueThe intended purpose of the uploaded file.
expires_after: Option<ExpiresAfter>The expiration policy for a file.
Trait Implementations§
Source§impl Clone for UploadCreateParams
impl Clone for UploadCreateParams
Source§fn clone(&self) -> UploadCreateParams
fn clone(&self) -> UploadCreateParams
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 UploadCreateParams
impl Debug for UploadCreateParams
Source§impl<'de> Deserialize<'de> for UploadCreateParams
impl<'de> Deserialize<'de> for UploadCreateParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UploadCreateParams
impl RefUnwindSafe for UploadCreateParams
impl Send for UploadCreateParams
impl Sync for UploadCreateParams
impl Unpin for UploadCreateParams
impl UnsafeUnpin for UploadCreateParams
impl UnwindSafe for UploadCreateParams
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