pub struct UploadImagesBuilder {
session_id: Option<Uuid>,
files: Option<Vec<UploadImage>>,
/* private fields */
}
Expand description
Builder for UploadImages
.
Fields§
§session_id: Option<Uuid>
§files: Option<Vec<UploadImage>>
Image bytes.
Implementations§
Source§impl UploadImagesBuilder
impl UploadImagesBuilder
pub fn session_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn files<VALUE: Into<Vec<UploadImage>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn files<VALUE: Into<Vec<UploadImage>>>( &mut self, value: VALUE, ) -> &mut Self
Image bytes.
Sourcepub fn build(&self) -> Result<UploadImages, BuilderError>
pub fn build(&self) -> Result<UploadImages, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl UploadImagesBuilder
impl UploadImagesBuilder
pub async fn send(&self) -> Result<Limited<UploadSessionFileDataObject>>
Trait Implementations§
Source§impl Clone for UploadImagesBuilder
impl Clone for UploadImagesBuilder
Source§fn clone(&self) -> UploadImagesBuilder
fn clone(&self) -> UploadImagesBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UploadImagesBuilder
impl !RefUnwindSafe for UploadImagesBuilder
impl !Send for UploadImagesBuilder
impl !Sync for UploadImagesBuilder
impl Unpin for UploadImagesBuilder
impl !UnwindSafe for UploadImagesBuilder
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