pub struct CommitUploadSessionBuilder<'a> {
    pub(crate) http_client: HttpClientRef,
    pub session_id: Option<&'a Uuid>,
    pub page_order: Vec<Uuid>,
    pub volume: Option<&'a str>,
    pub chapter: Option<&'a str>,
    pub title: Option<&'a str>,
    pub translated_language: Option<Language>,
    pub external_url: Option<&'a Url>,
    pub publish_at: Option<MangaDexDateTime>,
}
Expand description

Custom request builder to handle nested struct.

Fields

http_client: HttpClientRefsession_id: Option<&'a Uuid>page_order: Vec<Uuid>

Ordered list of Upload Session File IDs.

volume: Option<&'a str>

Nullable

chapter: Option<&'a str>

Nullable

title: Option<&'a str>

Nullable

translated_language: Option<Language>external_url: Option<&'a Url>

Must be a URL with “http(s)://”.

Nullable

publish_at: Option<MangaDexDateTime>

Implementations

Specify the upload session ID to commit.

Specify the Upload Session File IDs to commit, ordered.

Add an Upload Session File ID to commit, adds to the end of the pageOrder list.

Specify the volume the chapter belongs to.

Nullable

Specify the chapter number the session is for.

Nullable

Specify the title for the chapter.

Nullable

Specify the chapter number the session is for.

Nullable

Specify the URL where the chapter can be found.

Nullable

This should not be used if chapter has images uploaded to MangaDex.

Specify the date and time the chapter was originally published at.

Validate the field values. Use this before building.

Finalize the changes to the request struct and return the new struct.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more