pub struct R3ClientUploadFileAsyncBuilder<'__f0, __State: __R3ClientUploadFileAsyncBuilderState = (Required<FileUpload>,)> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::call()
.
Implementations§
Source§impl<'__f0, __State: __R3ClientUploadFileAsyncBuilderState> R3ClientUploadFileAsyncBuilder<'__f0, __State>where
__State::FileUpload: Into<Set<FileUpload>>,
impl<'__f0, __State: __R3ClientUploadFileAsyncBuilderState> R3ClientUploadFileAsyncBuilder<'__f0, __State>where
__State::FileUpload: Into<Set<FileUpload>>,
Sourcepub async fn call(self) -> Result<UploadFileResponse, UploadFileError>
pub async fn call(self) -> Result<UploadFileResponse, UploadFileError>
Finishes building and performs the requested action.
Source§impl<'__f0, __State: __R3ClientUploadFileAsyncBuilderState<FileUpload = Required<FileUpload>>> R3ClientUploadFileAsyncBuilder<'__f0, __State>
impl<'__f0, __State: __R3ClientUploadFileAsyncBuilderState<FileUpload = Required<FileUpload>>> R3ClientUploadFileAsyncBuilder<'__f0, __State>
Sourcepub fn file_upload(
self,
value: impl Into<FileUpload>,
) -> __R3ClientUploadFileAsyncBuilderSetFileUpload<'__f0>
pub fn file_upload( self, value: impl Into<FileUpload>, ) -> __R3ClientUploadFileAsyncBuilderSetFileUpload<'__f0>
Sets the value of file_upload
. See crate::R3Client::upload_file_async()
for more info.
Auto Trait Implementations§
impl<'__f0, __State> Freeze for R3ClientUploadFileAsyncBuilder<'__f0, __State>where
<__State as __R3ClientUploadFileAsyncBuilderState>::FileUpload: Freeze,
impl<'__f0, __State> RefUnwindSafe for R3ClientUploadFileAsyncBuilder<'__f0, __State>where
<__State as __R3ClientUploadFileAsyncBuilderState>::FileUpload: RefUnwindSafe,
__State: RefUnwindSafe,
impl<'__f0, __State> Send for R3ClientUploadFileAsyncBuilder<'__f0, __State>
impl<'__f0, __State> Sync for R3ClientUploadFileAsyncBuilder<'__f0, __State>
impl<'__f0, __State> Unpin for R3ClientUploadFileAsyncBuilder<'__f0, __State>
impl<'__f0, __State> UnwindSafe for R3ClientUploadFileAsyncBuilder<'__f0, __State>where
<__State as __R3ClientUploadFileAsyncBuilderState>::FileUpload: UnwindSafe,
__State: UnwindSafe,
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