pub struct Task {Show 16 fields
pub completed: Option<String>,
pub deleted: Option<bool>,
pub due: Option<String>,
pub etag: Option<String>,
pub hidden: Option<bool>,
pub id: Option<String>,
pub kind: Option<String>,
pub links: Option<Vec<TaskLinks>>,
pub notes: Option<String>,
pub parent: Option<String>,
pub position: Option<String>,
pub self_link: Option<String>,
pub status: Option<String>,
pub title: Option<String>,
pub updated: Option<String>,
pub web_view_link: Option<String>,
}
Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- clear tasks (none)
- delete tasks (none)
- get tasks (response)
- insert tasks (request|response)
- list tasks (none)
- move tasks (response)
- patch tasks (request|response)
- update tasks (request|response)
Fields§
§completed: Option<String>
Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
deleted: Option<bool>
Flag indicating whether the task has been deleted. The default is False.
due: Option<String>
Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn’t possible to read or write the time that a task is due via the API.
etag: Option<String>
ETag of the resource.
Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
id: Option<String>
Task identifier.
kind: Option<String>
Output only. Type of the resource. This is always “tasks#task”.
links: Option<Vec<TaskLinks>>
Output only. Collection of links. This collection is read-only.
notes: Option<String>
Notes describing the task. Optional. Maximum length allowed: 8192 characters.
parent: Option<String>
Output only. Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the “move” method to move the task under a different parent or to the top level.
position: Option<String>
Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task’s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the “move” method to move the task to another position.
self_link: Option<String>
Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
status: Option<String>
Status of the task. This is either “needsAction” or “completed”.
title: Option<String>
Title of the task. Maximum length allowed: 1024 characters.
updated: Option<String>
Output only. Last modification time of the task (as a RFC 3339 timestamp).
web_view_link: Option<String>
Output only. An absolute link to the task in the Google Tasks Web UI.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Task
impl Resource for Task
impl ResponseResult for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more