pub struct User {Show 18 fields
pub id: i32,
pub name: String,
pub about: Option<String>,
pub avatar: Option<Image>,
pub banner: Option<String>,
pub donator_badge: String,
pub donator_tier: i32,
pub favourites: Favourites,
pub is_blocked: Option<bool>,
pub is_follower: Option<bool>,
pub is_following: Option<bool>,
pub media_list_options: Option<MediaListOptions>,
pub options: Option<Options>,
pub url: String,
pub statistics: UserStatisticTypes,
pub unread_notification_count: Option<i32>,
pub created_at: i64,
pub updated_at: i64,
/* private fields */
}
Expand description
Represents a user with various attributes.
The User
struct contains detailed information about a user,
including their ID, name, about section, avatar, banner, donator
status, favourites, follow status, media list options, site URL,
statistics, notification count, and timestamps for creation and
updates.
§Fields
id
- The ID of the user.name
- The name of the user.about
- An optional about section for the user.avatar
- An optional avatar image for the user.banner
- An optional banner image for the user.donator_badge
- The donator badge of the user.donator_tier
- The donator tier of the user.favourites
- The user’s favourites.is_blocked
- An optional boolean indicating if the user is blocked.is_follower
- An optional boolean indicating if the user is a follower.is_following
- An optional boolean indicating if the user is following someone.media_list_options
- Optional media list options for the user.options
- Optional additional options for the user.url
- The site URL of the user.statistics
- The user’s statistics.unread_notification_count
- An optional count of unread notifications.created_at
- The timestamp when the user was created.updated_at
- The timestamp when the user was last updated.
Fields§
§id: i32
The ID of the user.
name: String
The name of the user.
about: Option<String>
The about of the user.
avatar: Option<Image>
The avatar of the user.
The banner of the user.
donator_badge: String
The donator badge of the user.
donator_tier: i32
The donator tier of the user.
favourites: Favourites
The favourites of the user.
is_blocked: Option<bool>
Whether the user is blocked or not.
is_follower: Option<bool>
Whether the user is a follower or not.
is_following: Option<bool>
Whether the user is following or not.
media_list_options: Option<MediaListOptions>
The media list options of the user.
options: Option<Options>
The options of the user.
url: String
The site URL of the user.
statistics: UserStatisticTypes
The statistics of the user.
unread_notification_count: Option<i32>
The unread notification count of the user.
created_at: i64
The created date of the user.
updated_at: i64
The updated date of the user.