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>,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
More detailed information only accessible to administrators.
Fields§
§username: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The username.
name: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The display name.
id: UserId
👎Deprecated since 0.1609.0: define deserialization types in client code
The user’s ID.
state: UserState
👎Deprecated since 0.1609.0: define deserialization types in client code
The state of the user account.
avatar_url: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
The URL of the user’s avatar.
web_url: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The URL of the user’s profile page.
created_at: Option<DateTime<Utc>>
👎Deprecated since 0.1609.0: define deserialization types in client code
When the account was created.
is_admin: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the user is an administrator or not.
Only available when talking to GitLab as an admin.
highest_role: Option<AccessLevel>
👎Deprecated since 0.1609.0: define deserialization types in client code
The highest access level available to the user.
Only available when talking to GitLab as an admin.
bio: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
Self-described biography of the user.
private_profile: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the account has a private profile.
location: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
Geographic location of the user.
public_email: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
User public email address, if any.
skype: String
👎Deprecated since 0.1609.0: define deserialization types in client code
Skype contact information.
linkedin: String
👎Deprecated since 0.1609.0: define deserialization types in client code
LinkedIn contact information.
twitter: String
👎Deprecated since 0.1609.0: define deserialization types in client code
Twitter contact information.
website_url: String
👎Deprecated since 0.1609.0: define deserialization types in client code
Custom URL for the user’s website.
organization: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
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 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
Mutably borrows from an owned value. Read more