pub struct UploadImages {
pub session_id: Uuid,
pub files: Vec<UploadImage>,
/* private fields */
}
Expand description
Upload images to the upload session.
This requires authentication.
Makes a request to POST /upload/{id}
.
Fields§
§session_id: Uuid
§files: Vec<UploadImage>
Image bytes.
Implementations§
Source§impl UploadImages
impl UploadImages
pub async fn send(&self) -> Result<Limited<UploadSessionFileDataObject>>
Trait Implementations§
Source§impl Clone for UploadImages
impl Clone for UploadImages
Source§fn clone(&self) -> UploadImages
fn clone(&self) -> UploadImages
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 moreSource§impl Debug for UploadImages
impl Debug for UploadImages
Source§impl Endpoint for UploadImages
impl Endpoint for UploadImages
type Query = ()
type Body = ()
type Response = UploadSessionFileData<ApiObject<UploadSessionFileAttributes>>
fn path(&self) -> Cow<'_, str>
fn method(&self) -> Method
fn require_auth(&self) -> bool
fn multipart(&self) -> Option<Form>
fn query(&self) -> Option<&Self::Query>
fn body(&self) -> Option<&Self::Body>
Auto Trait Implementations§
impl Freeze for UploadImages
impl !RefUnwindSafe for UploadImages
impl !Send for UploadImages
impl !Sync for UploadImages
impl Unpin for UploadImages
impl !UnwindSafe for UploadImages
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