pub enum PartField {
Show 18 variants
Id,
Title,
Url,
TextUrl(Vec<TextUrlField>),
Rating,
Draft,
ModifyDate,
CreateDate,
HasBannedImages,
Length,
VideoID,
PhotoUrl,
CommentCount,
VoteCount,
ReadCount,
GroupId,
Group(Vec<StoryField>),
Deleted,
}
Expand description
Represents the fields that can be requested for a Part
object from the Wattpad API.
Variants§
Id
The unique numerical identifier of the story part.
Title
The title of the story part.
Url
A direct URL to the story part on the Wattpad website.
TextUrl(Vec<TextUrlField>)
A complex field for URLs related to the part’s text content, with selectable sub-fields.
Rating
The content rating of the story part.
Draft
A boolean flag indicating whether the part is a draft.
ModifyDate
The timestamp when the part was last modified.
CreateDate
The timestamp when the part was created.
HasBannedImages
A boolean flag indicating if the part contains images that have been banned.
Length
The length of the story part, often representing an estimated reading time in seconds.
VideoID
The ID of any video associated with the part.
PhotoUrl
The URL for the part’s cover image.
CommentCount
The total number of comments on the part.
VoteCount
The total number of votes the part has received.
ReadCount
The total number of reads the part has received.
GroupId
The unique identifier of the parent story (also known as group ID).
Group(Vec<StoryField>)
The parent story.
Deleted
A boolean flag indicating whether the part has been deleted.
Trait Implementations§
Source§impl AuthRequiredFields for PartField
impl AuthRequiredFields for PartField
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 DefaultableFields for PartField
impl DefaultableFields for PartField
Source§fn default_fields() -> Vec<Self>
fn default_fields() -> Vec<Self>
impl Eq for PartField
impl StructuralPartialEq for PartField
Auto Trait Implementations§
impl Freeze for PartField
impl RefUnwindSafe for PartField
impl Send for PartField
impl Sync for PartField
impl Unpin for PartField
impl UnwindSafe for PartField
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.