pub enum PartStubField {
Show 17 variants
Id,
Title,
Url,
TextUrl(Vec<TextUrlField>),
Rating,
Draft,
CreateDate,
ModifyDate,
HasBannedImages,
Length,
VideoId,
PhotoUrl,
CommentCount,
VoteCount,
ReadCount,
Voted,
Deleted,
}
Expand description
Represents the fields for a PartStub
object.
A PartStub
is typically a lightweight or summary representation of a story part,
often used when a full Part
object is not required.
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.
CreateDate
The timestamp when the part was created.
ModifyDate
The timestamp when the part was last modified.
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.
Voted
A boolean flag indicating if the currently authenticated user has voted for this part. Requires authentication.
Deleted
A boolean flag indicating whether the part has been deleted.
Trait Implementations§
Source§impl AsRef<str> for PartStubField
impl AsRef<str> for PartStubField
Source§impl AuthRequiredFields for PartStubField
impl AuthRequiredFields for PartStubField
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 PartStubField
impl Clone for PartStubField
Source§fn clone(&self) -> PartStubField
fn clone(&self) -> PartStubField
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartStubField
impl Debug for PartStubField
Source§impl DefaultableFields for PartStubField
impl DefaultableFields for PartStubField
Source§fn default_fields() -> Vec<Self>
fn default_fields() -> Vec<Self>
Source§impl Display for PartStubField
impl Display for PartStubField
Source§impl PartialEq for PartStubField
impl PartialEq for PartStubField
impl Eq for PartStubField
impl StructuralPartialEq for PartStubField
Auto Trait Implementations§
impl Freeze for PartStubField
impl RefUnwindSafe for PartStubField
impl Send for PartStubField
impl Sync for PartStubField
impl Unpin for PartStubField
impl UnwindSafe for PartStubField
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.