pub enum StoryField {
Show 26 variants
Id,
Title,
Length,
CreatedDate,
ModifyDate,
VoteCount,
ReadCount,
CommentCount,
Language,
User(Vec<UserStubField>),
Description,
Cover,
CoverTimestamp,
Completed,
Categories,
Tags,
Rating,
Mature,
Copyright,
Url,
NumParts,
FirstPartId,
FirstPublishedPart(Vec<PartReferenceField>),
LastPublishedPart(Vec<PartReferenceField>),
Parts(Vec<PartStubField>),
Deleted,
}
Expand description
Represents the fields that can be requested for a Story
object from the Wattpad API.
Variants§
Id
The unique numerical identifier of the story.
Title
The title of the story.
Length
The estimated reading time of the story in seconds.
CreatedDate
The timestamp when the story was created.
ModifyDate
The timestamp when the story was last modified.
VoteCount
The total number of votes the story has received.
ReadCount
The total number of reads the story has received.
CommentCount
The total number of comments on the story.
Language
The numerical identifier for the story’s language.
User(Vec<UserStubField>)
A complex field representing the author of the story, with selectable sub-fields.
Description
The story’s description or synopsis.
Cover
The URL for the story’s cover image.
CoverTimestamp
The timestamp when the cover image was last updated.
Completed
A boolean flag indicating whether the story is marked as complete.
Categories
A list of category IDs that the story belongs to.
Tags
A list of user-defined tags associated with the story.
Rating
The content rating of the story (e.g., Everyone, Mature).
Mature
A boolean flag indicating if the story is intended for a mature audience.
Copyright
The copyright or license identifier for the story.
Url
A direct URL to the story on the Wattpad website.
NumParts
The total number of published parts in the story.
FirstPartId
The unique identifier of the first part of the story.
FirstPublishedPart(Vec<PartReferenceField>)
A complex field for a lightweight reference to the first published part, with sub-fields.
LastPublishedPart(Vec<PartReferenceField>)
A complex field for a lightweight reference to the last published part, with sub-fields.
Parts(Vec<PartStubField>)
A complex field for the list of parts in the story, with selectable sub-fields for each part.
Deleted
A boolean flag indicating whether the story has been deleted.
Trait Implementations§
Source§impl AsRef<str> for StoryField
impl AsRef<str> for StoryField
Source§impl AuthRequiredFields for StoryField
impl AuthRequiredFields for StoryField
Source§fn auth_required_fields() -> Vec<Self>
fn auth_required_fields() -> Vec<Self>
Source§fn auth_required(&self) -> bool
fn auth_required(&self) -> bool
Source§impl Clone for StoryField
impl Clone for StoryField
Source§fn clone(&self) -> StoryField
fn clone(&self) -> StoryField
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StoryField
impl Debug for StoryField
Source§impl DefaultableFields for StoryField
impl DefaultableFields for StoryField
Source§fn default_fields() -> Vec<Self>
fn default_fields() -> Vec<Self>
Source§impl Display for StoryField
impl Display for StoryField
Source§impl PartialEq for StoryField
impl PartialEq for StoryField
impl Eq for StoryField
impl StructuralPartialEq for StoryField
Auto Trait Implementations§
impl Freeze for StoryField
impl RefUnwindSafe for StoryField
impl Send for StoryField
impl Sync for StoryField
impl Unpin for StoryField
impl UnwindSafe for StoryField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.