pub struct User {Show 14 fields
pub param_self: Option<String>,
pub key: Option<String>,
pub account_id: Option<String>,
pub account_type: Option<AccountType>,
pub name: Option<String>,
pub email_address: Option<String>,
pub avatar_urls: Option<Box<AvatarUrlsBean>>,
pub display_name: Option<String>,
pub active: Option<bool>,
pub time_zone: Option<String>,
pub locale: Option<String>,
pub groups: Option<Box<SimpleListWrapperGroupName>>,
pub application_roles: Option<Box<SimpleListWrapperApplicationRole>>,
pub expand: Option<String>,
}
Expand description
User : A user with details as permitted by the user’s Atlassian Account privacy settings. However, be aware of these exceptions: * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, displayName
provides an indication and other parameters have default values or are blank (for example, email is blank). * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, accountId
returns unknown and all other parameters have fallback values. * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
Fields§
§param_self: Option<String>
The URL of the user.
key: Option<String>
This property is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
account_id: Option<String>
The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required in requests.
account_type: Option<AccountType>
The user account type. Can take the following values: * atlassian
regular Atlassian user account * app
system account used for Connect applications and OAuth to represent external systems * customer
Jira Service Desk account representing an external service desk
name: Option<String>
This property is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
email_address: Option<String>
The email address of the user. Depending on the user’s privacy setting, this may be returned as null.
avatar_urls: Option<Box<AvatarUrlsBean>>
The avatars of the user.
display_name: Option<String>
The display name of the user. Depending on the user’s privacy setting, this may return an alternative value.
active: Option<bool>
Whether the user is active.
time_zone: Option<String>
The time zone specified in the user’s profile. Depending on the user’s privacy setting, this may be returned as null.
locale: Option<String>
The locale of the user. Depending on the user’s privacy setting, this may be returned as null.
groups: Option<Box<SimpleListWrapperGroupName>>
The groups that the user belongs to.
application_roles: Option<Box<SimpleListWrapperApplicationRole>>
The application roles the user is assigned to.
expand: Option<String>
Expand options that include additional user details in the response.
Implementations§
Source§impl User
impl User
Sourcepub fn new() -> User
pub fn new() -> User
A user with details as permitted by the user’s Atlassian Account privacy settings. However, be aware of these exceptions: * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, displayName
provides an indication and other parameters have default values or are blank (for example, email is blank). * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, accountId
returns unknown and all other parameters have fallback values. * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.