pub struct User {Show 21 fields
pub active: bool,
pub avatar_url: String,
pub created: String,
pub description: String,
pub email: String,
pub followers_count: i64,
pub following_count: i64,
pub full_name: String,
pub id: i64,
pub is_admin: bool,
pub language: String,
pub last_login: String,
pub location: String,
pub login: String,
pub login_name: String,
pub prohibit_login: bool,
pub pronouns: String,
pub restricted: bool,
pub starred_repos_count: i64,
pub visibility: String,
pub website: String,
}Expand description
Represents a Gitea user.
Fields§
§active: boolWhether the user is active.
avatar_url: StringURL to the user’s avatar.
created: StringDate the user was created at.
description: StringDescription of the user (empty string if the user did not provide a discription).
email: StringEmail of the user.
followers_count: i64Number of followers the user has.
following_count: i64Number of users the user is following.
full_name: StringFull name of the user.
id: i64ID of the user.
is_admin: boolWhether the user is an admin.
language: StringLanguage the user speaks (empty string if the user did not specify any languaged).
last_login: StringDate the user last logged in.
location: StringLocation of the user (empty string if the user did not provide a location).
login: StringThe user’s username
login_name: StringThe user’s authenticated sign-in name. Empty by default.
prohibit_login: boolWhether the user is prohibited from logging in.
pronouns: StringPronouns of the user (empty string if the user did not provide any pronouns).
restricted: boolWhether the user is restricted.
starred_repos_count: i64Number of repositories the user has starred.
visibility: StringUser visibility. Can be one of “public”, “limited”, or “private”.
website: StringThe user’s website (empty string if the user did not provide a website).
Trait Implementations§
source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)