pub struct TaskRequest {
pub task_base: TaskBase,
pub assignee: Option<String>,
pub assignee_section: Option<String>,
pub custom_fields: Option<Value>,
pub followers: Option<Vec<String>>,
pub parent: Option<String>,
pub projects: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub workspace: Option<String>,
}
Fields§
§task_base: TaskBase
§assignee: Option<String>
Gid of a user.
assignee_section: Option<String>
The assignee section is a subdivision of a project that groups tasks together in the assignee’s “My Tasks” list. It can either be a header above a list of tasks in a list view or a column in a board view of “My Tasks.”
The assignee_section
property will be returned in the response only if the request was sent by the user who is the assignee of the task. Note that you can only write to assignee_section
with the gid of an existing section visible in the user’s “My Tasks” list.
custom_fields: Option<Value>
An object where each key is the GID of a custom field and its corresponding value is either an enum GID, string, number, object, or array (depending on the custom field type). See the custom fields guide for details on creating and updating custom field values.
followers: Option<Vec<String>>
Create-Only An array of strings identifying users. These can either be the string “me”, an email, or the gid of a user. In order to change followers on an existing task use addFollowers
and removeFollowers
.
parent: Option<String>
Gid of a task.
projects: Option<Vec<String>>
Create-Only Array of project gids. In order to change projects on an existing task use addProject
and removeProject
.
Create-Only Array of tag gids. In order to change tags on an existing task use addTag
and removeTag
.
workspace: Option<String>
Gid of a workspace.
Implementations§
Trait Implementations§
Source§impl Clone for TaskRequest
impl Clone for TaskRequest
Source§fn clone(&self) -> TaskRequest
fn clone(&self) -> TaskRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more