pub type UserResponse = User;
Expand description
Represents the response data for a full user object. Alias for [model::User
].
Aliased Type§
pub struct UserResponse {Show 33 fields
pub username: Option<String>,
pub avatar: Option<String>,
pub is_private: Option<bool>,
pub background_url: Option<String>,
pub name: Option<String>,
pub full_name: Option<String>,
pub description: Option<String>,
pub badges: Option<Vec<String>>,
pub status: Option<String>,
pub gender: Option<String>,
pub gender_code: Option<String>,
pub language: Option<i64>,
pub locale: Option<String>,
pub create_date: Option<String>,
pub modify_date: Option<String>,
pub location: Option<String>,
pub verified: Option<bool>,
pub ambassador: Option<bool>,
pub facebook: Option<String>,
pub website: Option<String>,
pub lulu: Option<String>,
pub smashwords: Option<String>,
pub bubok: Option<String>,
pub votes_received: Option<i64>,
pub num_stories_published: Option<i64>,
pub num_following: Option<i64>,
pub num_followers: Option<i64>,
pub num_messages: Option<i64>,
pub num_lists: Option<i64>,
pub verified_email: Option<bool>,
pub preferred_categories: Option<Vec<String>>,
pub allow_crawler: Option<bool>,
pub deeplink: Option<String>,
}
Fields§
§username: Option<String>
The user’s unique, public username.
avatar: Option<String>
The URL for the user’s profile picture (avatar).
is_private: Option<bool>
A boolean flag indicating if the user’s profile is private.
background_url: Option<String>
The URL for the user’s profile background image.
name: Option<String>
The user’s display name.
full_name: Option<String>
The user’s full display name.
description: Option<String>
The “About Me” or biography section of the user’s profile.
badges: Option<Vec<String>>
A list of badges the user has earned.
status: Option<String>
The user’s current status message.
gender: Option<String>
The user’s specified gender as a string.
gender_code: Option<String>
A numerical code representing the user’s gender.
language: Option<i64>
The numerical identifier for the user’s preferred language.
locale: Option<String>
The user’s locale string (e.g., “en_US”).
create_date: Option<String>
The timestamp when the user’s account was created.
modify_date: Option<String>
The timestamp when the user’s profile was last modified.
location: Option<String>
The user’s self-reported location.
verified: Option<bool>
A boolean flag indicating if the user is a verified account (e.g., a celebrity or public figure).
ambassador: Option<bool>
A boolean flag indicating if the user is a Wattpad Ambassador.
facebook: Option<String>
A link to the user’s Facebook profile.
website: Option<String>
A link to the user’s personal website.
lulu: Option<String>
A link to the user’s Lulu profile.
smashwords: Option<String>
A link to the user’s Smashwords profile.
bubok: Option<String>
A link to the user’s Bubok profile.
votes_received: Option<i64>
The total number of votes received across all of the user’s stories.
num_stories_published: Option<i64>
The number of stories the user has published.
num_following: Option<i64>
The number of other users this user is following.
num_followers: Option<i64>
The number of followers this user has.
num_messages: Option<i64>
The number of public messages on the user’s profile.
num_lists: Option<i64>
The number of public reading lists the user has created.
verified_email: Option<bool>
A boolean flag indicating if the user has verified their email address.
preferred_categories: Option<Vec<String>>
A list of the user’s preferred reading categories.
allow_crawler: Option<bool>
A boolean flag indicating if the user allows search engine crawlers to index their profile.
deeplink: Option<String>
A deep link URL for the user’s profile, often used for mobile app integration.