pub enum Website {
    NET,
    XXX,
}
Expand description

In cases where the standard output domain nhentai.net may be restricted on the end user’s network, an option can be provided to use nhentai.xxx URLs instead. Note that the Hentai::new() constructor will not work if the standard output domain is blocked. This is because nhentai.xxx does not reimplement nhentai’s API and requests must still be made to the original URL.

However, if the JSON is provided, one may generate either type of URL regardless of whether or not the original domain is blocked. This feature’s primary purpose is to retrieve information for the doujin under an unrestricted network, and create alternative URLs for the user with the restricted network.

One of these options must be provided in the constructor.

Variants

NET

XXX

Trait Implementations

Formats the value using the given formatter. 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 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.