pub struct CommitUploadSession<'a> {
pub(crate) http_client: HttpClientRef,
pub session_id: &'a Uuid,
chapter_draft: ChapterDraft<'a>,
pub page_order: Vec<Uuid>,
}Fields§
§http_client: HttpClientRefThis should never be set manually as this is only for internal use.
session_id: &'a Uuid§chapter_draft: ChapterDraft<'a>§page_order: Vec<Uuid>Ordered list of Upload Session File IDs.
Any uploaded files that are not included in this list will be deleted.
Implementations§
Source§impl CommitUploadSession<'_>
impl CommitUploadSession<'_>
Sourcepub async fn send(&self) -> Result<ChapterObject>
pub async fn send(&self) -> Result<ChapterObject>
Send the request.
Trait Implementations§
Source§impl<'a> Clone for CommitUploadSession<'a>
impl<'a> Clone for CommitUploadSession<'a>
Source§fn clone(&self) -> CommitUploadSession<'a>
fn clone(&self) -> CommitUploadSession<'a>
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<'a> Debug for CommitUploadSession<'a>
impl<'a> Debug for CommitUploadSession<'a>
Source§impl Endpoint for CommitUploadSession<'_>
impl Endpoint for CommitUploadSession<'_>
Source§type Response = ApiObject<ChapterAttributes>
type Response = ApiObject<ChapterAttributes>
The response type.
Source§fn require_auth(&self) -> bool
fn require_auth(&self) -> bool
Get whether auth is required for this request.
type Query = ()
type Body = CommitUploadSession<'_>
fn query(&self) -> Option<&Self::Query>
fn multipart(&self) -> Option<Form>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CommitUploadSession<'a>
impl<'a> !Send for CommitUploadSession<'a>
impl<'a> !Sync for CommitUploadSession<'a>
impl<'a> !UnwindSafe for CommitUploadSession<'a>
impl<'a> Freeze for CommitUploadSession<'a>
impl<'a> Unpin for CommitUploadSession<'a>
impl<'a> UnsafeUnpin for CommitUploadSession<'a>
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