#[non_exhaustive]pub struct UploadFileForm {
pub file: MultipartPart,
pub purpose: UploadFilePurpose,
pub expires_after: Option<FileExpiry>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: MultipartPart§purpose: UploadFilePurpose§expires_after: Option<FileExpiry>Implementations§
Source§impl UploadFileForm
impl UploadFileForm
Sourcepub fn builder(
file: MultipartPart,
purpose: UploadFilePurpose,
) -> UploadFileFormBuilder
pub fn builder( file: MultipartPart, purpose: UploadFilePurpose, ) -> UploadFileFormBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Debug for UploadFileForm
impl Debug for UploadFileForm
Source§impl DeclaredFields for UploadFileForm
impl DeclaredFields for UploadFileForm
fn into_declared(self) -> Self
Auto Trait Implementations§
impl !Freeze for UploadFileForm
impl !RefUnwindSafe for UploadFileForm
impl !Sync for UploadFileForm
impl !UnwindSafe for UploadFileForm
impl Send for UploadFileForm
impl Unpin for UploadFileForm
impl UnsafeUnpin for UploadFileForm
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