#[non_exhaustive]pub struct CommitUploadSession {
pub http_client: HttpClientRef,
pub session_id: Uuid,
chapter_draft: ChapterDraft,
pub page_order: Vec<Uuid>,
pub terms_accepted: bool,
}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.http_client: HttpClientRefThis should never be set manually as this is only for internal use.
session_id: Uuid§chapter_draft: ChapterDraft§page_order: Vec<Uuid>Ordered list of Upload Session File IDs.
Any uploaded files that are not included in this list will be deleted.
terms_accepted: boolImplementations§
Source§impl CommitUploadSession
impl CommitUploadSession
Sourcepub async fn send(&self) -> Result<Limited<ChapterData>>
pub async fn send(&self) -> Result<Limited<ChapterData>>
Send the request.
Trait Implementations§
Source§impl Clone for CommitUploadSession
impl Clone for CommitUploadSession
Source§fn clone(&self) -> CommitUploadSession
fn clone(&self) -> CommitUploadSession
Returns a duplicate 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 CommitUploadSession
impl Debug for CommitUploadSession
Auto Trait Implementations§
impl Freeze for CommitUploadSession
impl !RefUnwindSafe for CommitUploadSession
impl Send for CommitUploadSession
impl Sync for CommitUploadSession
impl Unpin for CommitUploadSession
impl !UnwindSafe for CommitUploadSession
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