pub struct Product {
Show 19 fields pub sku: String, pub price: usize, pub sale_price: Option<usize>, pub title: String, pub short_title: Option<String>, pub description: String, pub short_description: Option<String>, pub category: String, pub product_type: Option<String>, pub tags: Option<Vec<ProductTag>>, pub visible: bool, pub details: ProductDetails, pub updated_at: String, pub created_at: String, pub status: String, pub release_date: Option<String>, pub unpublished: Option<bool>, pub on_wishlist: bool, pub is_owned: bool,
}
Expand description

Represents a Minehut product response from the API. It contains most information about a product. Due to the response body from the API, many fields are optional.

Fields

sku: String

The sku, no idea what this is.

price: usize

Credits to buy the product.

sale_price: Option<usize>

Sale price to buy product, can be different from price and may not exist.

title: String

Title of the product.

short_title: Option<String>

Shorter title of the product, may not exist.

description: String

Description of the product.

short_description: Option<String>

Short description of the product, may not exist.

category: String

Category of the product.

product_type: Option<String>

Type of the product, might not exist.

tags: Option<Vec<ProductTag>>

Tags of the product, usually does not exist.

visible: bool

Whether product is visible.

details: ProductDetails

Other details of the product.

updated_at: String

When the product was last updates.

created_at: String

When the product was created.

status: String

Status of the product.

release_date: Option<String>

When product was released, if it was.

unpublished: Option<bool>

If it is unpublished, may not exist.

on_wishlist: bool

On wishlist, does not make sense.

is_owned: bool

Is owned. Still does not make sense.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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.

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