pub struct User {Show 17 fields
pub avatar_url: Option<String>,
pub access_roles: Option<Vec<String>>,
pub last_name: Option<String>,
pub timezone: Option<String>,
pub email: Option<String>,
pub cost_rate: Option<f64>,
pub id: Option<i64>,
pub created_at: Option<String>,
pub first_name: Option<String>,
pub updated_at: Option<String>,
pub weekly_capacity: Option<i64>,
pub roles: Option<Vec<String>>,
pub has_access_to_all_future_projects: Option<bool>,
pub telephone: Option<String>,
pub is_contractor: Option<bool>,
pub is_active: Option<bool>,
pub default_hourly_rate: Option<f64>,
}Fields§
§avatar_url: Option<String>The URL to the user’s avatar image.
access_roles: Option<Vec<String>>Access role(s) that determine the user’s permissions in Harvest. Possible values: administrator, manager or member. Users with the manager role can additionally be granted one or more of these roles: project_creator, billable_rates_manager, managed_projects_invoice_drafter, managed_projects_invoice_manager, client_and_task_manager, time_and_expenses_manager, estimates_manager.
last_name: Option<String>The last name of the user.
timezone: Option<String>The user’s timezone.
email: Option<String>The email address of the user.
cost_rate: Option<f64>The cost rate to use for this user when calculating a project’s costs vs billable amount.
id: Option<i64>Unique ID for the user.
created_at: Option<String>Date and time the user was created.
first_name: Option<String>The first name of the user.
updated_at: Option<String>Date and time the user was last updated.
weekly_capacity: Option<i64>The number of hours per week this person is available to work in seconds, in half hour increments. For example, if a person’s capacity is 35 hours, the API will return 126000 seconds.
roles: Option<Vec<String>>Descriptive names of the business roles assigned to this person. They can be used for filtering reports, and have no effect in their permissions in Harvest.
has_access_to_all_future_projects: Option<bool>Whether the user should be automatically added to future projects.
telephone: Option<String>The user’s telephone number.
is_contractor: Option<bool>Whether the user is a contractor or an employee.
is_active: Option<bool>Whether the user is active or archived.
default_hourly_rate: Option<f64>The billable rate to use for this user when they are added to a project.