pub type StoryResponse = Story;
Expand description
Represents the response data for a full story object. Alias for [model::Story
].
Aliased Type§
pub struct StoryResponse {Show 26 fields
pub id: Option<String>,
pub title: Option<String>,
pub length: Option<i64>,
pub create_date: Option<String>,
pub modify_date: Option<String>,
pub vote_count: Option<i64>,
pub read_count: Option<i64>,
pub comment_count: Option<i64>,
pub language: Option<Language>,
pub user: Option<UserStub>,
pub description: Option<String>,
pub cover: Option<String>,
pub cover_timestamp: Option<String>,
pub completed: Option<bool>,
pub categories: Option<Vec<i64>>,
pub tags: Option<Vec<String>>,
pub rating: Option<i64>,
pub mature: Option<bool>,
pub copyright: Option<i64>,
pub url: Option<String>,
pub num_parts: Option<i64>,
pub first_part_id: Option<i64>,
pub first_published_part: Option<PartReference>,
pub last_published_part: Option<PartReference>,
pub parts: Option<Vec<PartStub>>,
pub deleted: Option<bool>,
}
Fields§
§id: Option<String>
The unique identifier of the story.
title: Option<String>
The title of the story.
length: Option<i64>
The estimated reading time of the story in seconds.
create_date: Option<String>
The timestamp when the story was created.
modify_date: Option<String>
The timestamp when the story was last modified.
vote_count: Option<i64>
The total number of votes the story has received.
read_count: Option<i64>
The total number of reads the story has received.
comment_count: Option<i64>
The total number of comments on the story.
language: Option<Language>
The language the story is written in.
user: Option<UserStub>
A stub object representing the author of the story.
description: Option<String>
The story’s description or synopsis.
cover: Option<String>
The URL for the story’s cover image.
cover_timestamp: Option<String>
The timestamp when the cover image was last updated.
completed: Option<bool>
A boolean flag indicating whether the story is marked as complete.
categories: Option<Vec<i64>>
A list of category IDs that the story belongs to.
A list of user-defined tags associated with the story.
rating: Option<i64>
The content rating of the story (e.g., Everyone, Mature).
mature: Option<bool>
A boolean flag indicating if the story is intended for a mature audience.
copyright: Option<i64>
The copyright or license identifier for the story.
url: Option<String>
A direct URL to the story on the Wattpad website.
num_parts: Option<i64>
The total number of published parts in the story.
first_part_id: Option<i64>
The unique identifier of the first part of the story.
first_published_part: Option<PartReference>
A lightweight reference to the first published part of the story.
last_published_part: Option<PartReference>
A lightweight reference to the last published part of the story.
parts: Option<Vec<PartStub>>
A list of the parts belonging to this story, often as stubs.
deleted: Option<bool>
A boolean flag indicating whether the story has been deleted.