Struct asana::models::task_base_all_of::TaskBaseAllOf
source · [−]pub struct TaskBaseAllOf {Show 25 fields
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 name: 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>,
}
Fields
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.
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.
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.
Implementations
sourceimpl TaskBaseAllOf
impl TaskBaseAllOf
pub fn new() -> TaskBaseAllOf
Trait Implementations
sourceimpl Clone for TaskBaseAllOf
impl Clone for TaskBaseAllOf
sourcefn clone(&self) -> TaskBaseAllOf
fn clone(&self) -> TaskBaseAllOf
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more