pub enum UserField {
Show 32 variants
Username,
Avatar,
IsPrivate,
BackgroundUrl,
Name,
Description,
Badges,
Status,
Gender,
GenderCode,
Language,
Locale,
CreateDate,
ModifyDate,
Location,
Verified,
Ambassador,
Facebook,
Website,
Lulu,
Smashwords,
Bubok,
VotesReceived,
NumStoriesPublished,
NumFollowing,
NumFollowers,
NumMessages,
NumLists,
VerifiedEmail,
PreferredCategories,
AllowCrawler,
Deeplink,
}
Expand description
Represents the fields that can be requested for a User
object from the Wattpad API.
Variants§
Username
The user’s unique, public username.
Avatar
The URL for the user’s profile picture (avatar).
IsPrivate
A boolean flag indicating if the user’s profile is private.
BackgroundUrl
The URL for the user’s profile background image.
Name
The user’s full display name.
Description
The “About Me” or biography section of the user’s profile.
Badges
A list of badges the user has earned.
Status
The user’s current status message.
Gender
The user’s specified gender as a string.
GenderCode
A numerical code representing the user’s gender.
Language
The numerical identifier for the user’s preferred language.
Locale
The user’s locale string (e.g., “en_US”).
CreateDate
The timestamp when the user’s account was created.
ModifyDate
The timestamp when the user’s profile was last modified.
Location
The user’s self-reported location.
Verified
A boolean flag indicating if the user is a verified account (e.g., a celebrity or public figure).
Ambassador
A boolean flag indicating if the user is a Wattpad Ambassador.
A link to the user’s Facebook profile.
Website
A link to the user’s personal website.
Lulu
A link to the user’s Lulu profile.
Smashwords
A link to the user’s Smashwords profile.
Bubok
A link to the user’s Bubok profile.
VotesReceived
The total number of votes received across all of the user’s stories.
NumStoriesPublished
The number of stories the user has published.
NumFollowing
The number of other users this user is following.
NumFollowers
The number of followers this user has.
NumMessages
The number of public messages on the user’s profile.
NumLists
The number of public reading lists the user has created.
VerifiedEmail
A boolean flag indicating if the user has verified their email address.
PreferredCategories
A list of the user’s preferred reading categories.
AllowCrawler
A boolean flag indicating if the user allows search engine crawlers to index their profile.
Deeplink
A deep link URL for the user’s profile, often used for mobile app integration.
Trait Implementations§
Source§impl AuthRequiredFields for UserField
impl AuthRequiredFields for UserField
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 UserField
impl DefaultableFields for UserField
Source§fn default_fields() -> Vec<Self>
fn default_fields() -> Vec<Self>
impl Eq for UserField
impl StructuralPartialEq for UserField
Auto Trait Implementations§
impl Freeze for UserField
impl RefUnwindSafe for UserField
impl Send for UserField
impl Sync for UserField
impl Unpin for UserField
impl UnwindSafe for UserField
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.