pub struct TaskResponse {
Show 35 fields pub gid: Option<String>, pub resource_type: Option<String>, pub name: Option<String>, pub approval_status: Option<ApprovalStatus>, pub completed: Option<bool>, pub completed_at: Option<String>, pub completed_by: Option<Box<UserCompact>>, pub created_at: Option<String>, pub dependencies: Option<Vec<AsanaResource>>, pub dependents: Option<Vec<AsanaResource>>, pub due_at: Option<String>, pub due_on: Option<String>, pub external: Option<Box<TaskBaseAllOfExternal>>, pub html_notes: Option<String>, pub hearted: Option<bool>, pub hearts: Option<Vec<Like>>, pub is_rendered_as_separator: Option<bool>, pub liked: Option<bool>, pub likes: Option<Vec<Like>>, pub memberships: Option<Vec<TaskBaseAllOfMemberships>>, pub modified_at: Option<String>, pub notes: Option<String>, pub num_hearts: Option<i32>, pub num_likes: Option<i32>, pub num_subtasks: Option<i32>, pub resource_subtype: Option<ResourceSubtype>, pub start_on: Option<String>, pub assignee: Option<Box<UserCompact>>, pub custom_fields: Option<Vec<CustomFieldResponse>>, pub followers: Option<Vec<UserCompact>>, pub parent: Option<Box<TaskCompact>>, pub projects: Option<Vec<ProjectCompact>>, pub tags: Option<Vec<TagCompact>>, pub workspace: Option<Box<WorkspaceCompact>>, pub permalink_url: Option<String>,
}

Fields

gid: Option<String>

Globally unique identifier of the resource, as a string.

resource_type: Option<String>

The base type of this resource.

name: Option<String>

Name of the task. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer.

approval_status: Option<ApprovalStatus>

Conditional Reflects the approval status of this task. This field is kept in sync with completed, meaning pending translates to false while approved, rejected, and changes_requested translate to true. If you set completed to true, this field will be set to approved.

completed: Option<bool>

True if the task is currently marked complete, false if not.

completed_at: Option<String>

The time at which this task was completed, or null if the task is incomplete.

completed_by: Option<Box<UserCompact>>created_at: Option<String>

The time at which this resource was created.

dependencies: Option<Vec<AsanaResource>>

Opt In. Array of resources referencing tasks that this task depends on. The objects contain only the gid of the dependency.

dependents: Option<Vec<AsanaResource>>

Opt In. Array of resources referencing tasks that depend on this task. The objects contain only the ID of the dependent.

due_at: Option<String>

The UTC date and time on which this task is due, or null if the task has no due time. This takes an ISO 8601 date string in UTC and should not be used together with due_on.

due_on: Option<String>

The localized date on which this task is due, or null if the task has no due date. This takes a date with YYYY-MM-DD format and should not be used together with due_at.

external: Option<Box<TaskBaseAllOfExternal>>html_notes: Option<String>

Opt In. The notes of the text with formatting as HTML.

hearted: Option<bool>

Deprecated - please use liked instead True if the task is hearted by the authorized user, false if not.

hearts: Option<Vec<Like>>

Deprecated - please use likes instead Array of likes for users who have hearted this task.

is_rendered_as_separator: Option<bool>

Opt In. In some contexts tasks can be rendered as a visual separator; for instance, subtasks can appear similar to sections without being true section objects. If a task object is rendered this way in any context it will have the property is_rendered_as_separator set to true.

liked: Option<bool>

True if the task is liked by the authorized user, false if not.

likes: Option<Vec<Like>>

Array of likes for users who have liked this task.

memberships: Option<Vec<TaskBaseAllOfMemberships>>

Create-only. Array of projects this task is associated with and the section it is in. At task creation time, this array can be used to add the task to specific sections. After task creation, these associations can be modified using the addProject and removeProject endpoints. Note that over time, more types of memberships may be added to this property.

modified_at: Option<String>

The time at which this task was last modified. Note: This does not currently reflect any changes in associations such as projects or comments that may have been added or removed from the task.

notes: Option<String>

More detailed, free-form textual information associated with the task.

num_hearts: Option<i32>

Deprecated - please use likes instead The number of users who have hearted this task.

num_likes: Option<i32>

The number of users who have liked this task.

num_subtasks: Option<i32>

Opt In. The number of subtasks on this task.

resource_subtype: Option<ResourceSubtype>

The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning. The resource_subtype milestone represent a single moment in time. This means tasks with this subtype cannot have a start_date.

start_on: Option<String>

The day on which work begins for the task , or null if the task has no start date. This takes a date with YYYY-MM-DD format. Note: due_on or due_at must be present in the request when setting or unsetting the start_on parameter.

assignee: Option<Box<UserCompact>>custom_fields: Option<Vec<CustomFieldResponse>>

Array of custom field values applied to the task. These represent the custom field values recorded on this project for a particular custom field. For example, these custom field values will contain an enum_value property for custom fields of type enum, a text_value property for custom fields of type text, and so on. Please note that the gid returned on each custom field value is identical to the gid of the custom field, which allows referencing the custom field metadata through the /custom_fields/custom_field-gid endpoint.

followers: Option<Vec<UserCompact>>

Array of users following this task.

parent: Option<Box<TaskCompact>>projects: Option<Vec<ProjectCompact>>

Create-only. Array of projects this task is associated with. At task creation time, this array can be used to add the task to many projects at once. After task creation, these associations can be modified using the addProject and removeProject endpoints.

tags: Option<Vec<TagCompact>>

Array of tags associated with this task. In order to change tags on an existing task use addTag and removeTag.

workspace: Option<Box<WorkspaceCompact>>permalink_url: Option<String>

A url that points directly to the object within Asana.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more