Struct mangadex_api::v5::upload::UploadBuilder
source · [−]pub struct UploadBuilder {
http_client: HttpClientRef,
}
Expand description
Upload endpoint handler builder.
Fields
http_client: HttpClientRef
Implementations
sourceimpl UploadBuilder
impl UploadBuilder
sourcepub fn cover(&self) -> UploadCoverBuilder<'_>
pub fn cover(&self) -> UploadCoverBuilder<'_>
Upload a manga cover image.
sourcepub fn get_session(&self) -> GetUploadSessionBuilder
pub fn get_session(&self) -> GetUploadSessionBuilder
Get the logged-in user’s current upload session.
https://api.mangadex.org/swagger.html#/Upload/get-upload-session
sourcepub fn start_session(&self) -> StartUploadSessionBuilder<'_>
pub fn start_session(&self) -> StartUploadSessionBuilder<'_>
Start an upload session.
https://api.mangadex.org/swagger.html#/Upload/begin-upload-session
sourcepub fn start_edit_chapter_session(&self) -> StartEditChapterSessionBuilder<'_>
pub fn start_edit_chapter_session(&self) -> StartEditChapterSessionBuilder<'_>
Start an edit chapter session.
https://api.mangadex.org/swagger.html#/Upload/begin-edit-session
sourcepub fn upload_images(&self) -> UploadImagesBuilder<'_>
pub fn upload_images(&self) -> UploadImagesBuilder<'_>
Upload images to the upload session.
https://api.mangadex.org/swagger.html#/Upload/put-upload-session-file
Currently, there is a maximum of 10 images per request.
sourcepub fn abandon_session(&self) -> AbandonUploadSessionBuilder<'_>
pub fn abandon_session(&self) -> AbandonUploadSessionBuilder<'_>
Abandon an ongoing upload session.
https://api.mangadex.org/swagger.html#/Upload/abandon-upload-session
sourcepub fn commit_session(&self) -> CommitUploadSessionBuilder<'_>
pub fn commit_session(&self) -> CommitUploadSessionBuilder<'_>
Commit the upload session and specify chapter data.
https://api.mangadex.org/swagger.html#/Upload/commit-upload-session
sourcepub fn delete_image(&self) -> DeleteImageBuilder<'_>
pub fn delete_image(&self) -> DeleteImageBuilder<'_>
Delete an uploaded image from the upload session.
https://api.mangadex.org/swagger.html#/Upload/delete-uploaded-session-file
sourcepub fn delete_images(&self) -> DeleteImagesBuilder<'_>
pub fn delete_images(&self) -> DeleteImagesBuilder<'_>
Delete a set of uploaded images from the upload session.
https://api.mangadex.org/swagger.html#/Upload/delete-uploaded-session-files
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for UploadBuilder
impl Send for UploadBuilder
impl Sync for UploadBuilder
impl Unpin for UploadBuilder
impl !UnwindSafe for UploadBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more