pub enum PartContentField {
Text,
TextHash,
}
Expand description
Represents the fields that can be requested for a PartContent
object from the Wattpad API.
Variants§
Text
The full text content of the story part.
TextHash
A hash of the text content, likely for caching or integrity checks.
Trait Implementations§
Source§impl AuthRequiredFields for PartContentField
impl AuthRequiredFields for PartContentField
Source§fn auth_required_fields() -> Vec<Self>
fn auth_required_fields() -> Vec<Self>
Returns a vector of enum variants that require authentication. Read more
Source§fn auth_required(&self) -> bool
fn auth_required(&self) -> bool
Checks if a specific field instance requires authentication. Read more
Source§impl Clone for PartContentField
impl Clone for PartContentField
Source§fn clone(&self) -> PartContentField
fn clone(&self) -> PartContentField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PartContentField
impl Debug for PartContentField
Source§impl DefaultableFields for PartContentField
impl DefaultableFields for PartContentField
Source§fn default_fields() -> Vec<Self>
fn default_fields() -> Vec<Self>
Returns a vector of the enum’s variants that should be used as the default.
Source§impl Display for PartContentField
impl Display for PartContentField
Source§impl IntoEnumIterator for PartContentField
impl IntoEnumIterator for PartContentField
Source§impl PartialEq for PartContentField
impl PartialEq for PartContentField
impl Copy for PartContentField
impl Eq for PartContentField
impl StructuralPartialEq for PartContentField
Auto Trait Implementations§
impl Freeze for PartContentField
impl RefUnwindSafe for PartContentField
impl Send for PartContentField
impl Sync for PartContentField
impl Unpin for PartContentField
impl UnwindSafe for PartContentField
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
Mutably borrows from an owned value. Read more
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
Compare self to
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.