UserField

Enum UserField 

Source
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.

§

Facebook

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.

A deep link URL for the user’s profile, often used for mobile app integration.

Trait Implementations§

Source§

impl AsRef<str> for UserField

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AuthRequiredFields for UserField

Source§

fn auth_required_fields() -> Vec<Self>

Returns a vector of enum variants that require authentication. Read more
Source§

fn auth_required(&self) -> bool

Checks if a specific field instance requires authentication. Read more
Source§

impl Clone for UserField

Source§

fn clone(&self) -> UserField

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UserField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DefaultableFields for UserField

Source§

fn default_fields() -> Vec<Self>

Returns a vector of the enum’s variants that should be used as the default.
Source§

impl Display for UserField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for UserField

Source§

fn eq(&self, other: &UserField) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for UserField

Source§

impl StructuralPartialEq for UserField

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,