pub struct FileCreateParams {
pub file: Value,
pub purpose: FilePurpose,
pub expires_after: Option<ExpiresAfter>,
}Fields§
§file: ValueThe File object (not file name) to be uploaded.
purpose: FilePurposeThe intended purpose of the uploaded file. One of:
expires_after: Option<ExpiresAfter>The expiration policy for a file.
Trait Implementations§
Source§impl Clone for FileCreateParams
impl Clone for FileCreateParams
Source§fn clone(&self) -> FileCreateParams
fn clone(&self) -> FileCreateParams
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 FileCreateParams
impl Debug for FileCreateParams
Source§impl<'de> Deserialize<'de> for FileCreateParams
impl<'de> Deserialize<'de> for FileCreateParams
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 FileCreateParams
impl RefUnwindSafe for FileCreateParams
impl Send for FileCreateParams
impl Sync for FileCreateParams
impl Unpin for FileCreateParams
impl UnsafeUnpin for FileCreateParams
impl UnwindSafe for FileCreateParams
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