PartStubResponse

Type Alias PartStubResponse 

Source
pub type PartStubResponse = PartStub;
Expand description

Represents the response data for a lightweight story part stub. Alias for [model::PartStub].

Aliased Type§

pub struct PartStubResponse {
Show 17 fields pub id: Option<u64>, pub title: Option<String>, pub url: Option<String>, pub text_url: Option<TextUrl>, pub rating: Option<i64>, pub draft: Option<bool>, pub modify_date: Option<String>, pub create_date: Option<String>, pub has_banned_images: Option<bool>, pub length: Option<i64>, pub video_id: Option<String>, pub photo_url: Option<String>, pub comment_count: Option<i64>, pub vote_count: Option<i64>, pub read_count: Option<i64>, pub voted: Option<bool>, pub deleted: Option<bool>,
}

Fields§

§id: Option<u64>

The unique numerical identifier of the story part.

§title: Option<String>

The title of the story part.

§url: Option<String>

A direct URL to the story part on the Wattpad website.

§text_url: Option<TextUrl>

An object containing URLs for accessing the part’s text content.

§rating: Option<i64>

The content rating of the story part.

§draft: Option<bool>

A boolean flag indicating whether the part is a draft.

§modify_date: Option<String>

The timestamp when the part was last modified.

§create_date: Option<String>

The timestamp when the part was created.

§has_banned_images: Option<bool>

A boolean flag indicating if the part contains images that have been banned.

§length: Option<i64>

The length of the story part, often representing an estimated reading time in seconds.

§video_id: Option<String>

The ID of any video associated with the part.

§photo_url: Option<String>

The URL for the part’s cover image.

§comment_count: Option<i64>

The total number of comments on the part.

§vote_count: Option<i64>

The total number of votes the part has received.

§read_count: Option<i64>

The total number of reads the part has received.

§voted: Option<bool>

A boolean flag indicating if the currently authenticated user has voted for this part. Requires authentication.

§deleted: Option<bool>

A boolean flag indicating whether the part has been deleted.