pub type PartResponse = Part;
Expand description
Represents the response data for a full story part object. Alias for [model::Part
].
Aliased Type§
pub struct PartResponse {Show 19 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 group_id: Option<String>,
pub voted: Option<bool>,
pub group: Option<Box<Story>>,
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.
group_id: Option<String>
The unique identifier of the parent story.
voted: Option<bool>
A boolean flag indicating if the currently authenticated user has voted for this part.
group: Option<Box<Story>>
The parent story object that this part belongs to.
This is heap-allocated using Box
to prevent an infinitely sized struct,
as a Story
can contain a list of Part
s.
deleted: Option<bool>
A boolean flag indicating whether the part has been deleted.