pub struct User {Show 18 fields
pub username: String,
pub name: String,
pub id: UserId,
pub state: UserState,
pub avatar_url: Option<String>,
pub web_url: String,
pub created_at: Option<DateTime<Utc>>,
pub is_admin: Option<bool>,
pub highest_role: Option<AccessLevel>,
pub bio: Option<String>,
pub private_profile: Option<bool>,
pub location: Option<String>,
pub public_email: Option<String>,
pub skype: String,
pub linkedin: String,
pub twitter: String,
pub website_url: String,
pub organization: Option<String>,
}Expand description
More detailed information only accessible to administrators.
Fields§
§username: StringThe username.
name: StringThe display name.
id: UserIdThe user’s ID.
state: UserStateThe state of the user account.
avatar_url: Option<String>The URL of the user’s avatar.
web_url: StringThe URL of the user’s profile page.
created_at: Option<DateTime<Utc>>When the account was created.
is_admin: Option<bool>Whether the user is an administrator or not.
Only available when talking to GitLab as an admin.
highest_role: Option<AccessLevel>The highest access level available to the user.
Only available when talking to GitLab as an admin.
bio: Option<String>Self-described biography of the user.
private_profile: Option<bool>Whether the account has a private profile.
location: Option<String>Geographic location of the user.
public_email: Option<String>User public email address, if any.
skype: StringSkype contact information.
linkedin: StringLinkedIn contact information.
twitter: StringTwitter contact information.
website_url: StringCustom URL for the user’s website.
organization: Option<String>Organization the user belongs to.
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<UserPublic> for User
impl From<UserPublic> for User
source§fn from(user: UserPublic) -> Self
fn from(user: UserPublic) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more