Skip to main content

TaskApiV2

Enum TaskApiV2 

Source
pub enum TaskApiV2 {
Show 55 variants TaskCreate, TaskGet(String), TaskUpdate(String), TaskDelete(String), TaskComplete(String), TaskUncomplete(String), TaskList, TasklistCreate, TasklistGet(String), TasklistUpdate(String), TasklistDelete(String), TasklistList, SectionCreate(String), SectionGet(String, String), SectionUpdate(String, String), SectionDelete(String, String), SectionList(String), CustomFieldCreate(String), CustomFieldGet(String, String), CustomFieldUpdate(String, String), CustomFieldDelete(String, String), CustomFieldList(String), CommentCreate(String), CommentGet(String, String), CommentUpdate(String, String), CommentDelete(String, String), CommentList(String), AttachmentUpload(String), AttachmentDelete(String, String), SubtaskCreate(String), SubtaskList(String), TaskAddTasklist(String), TaskRemoveTasklist(String), TaskGetTasklists(String), TaskAddMembers(String), TaskRemoveMembers(String), TaskAddReminders(String), TaskRemoveReminders(String), TaskAddDependencies(String), TaskRemoveDependencies(String), TasklistGetTasks(String), TasklistAddMembers(String), TasklistRemoveMembers(String), SectionGetTasks(String), ActivitySubscriptionCreate(String), ActivitySubscriptionGet(String, String), ActivitySubscriptionUpdate(String, String), ActivitySubscriptionDelete(String, String), ActivitySubscriptionList(String), CustomFieldOptionCreate(String), CustomFieldOptionUpdate(String, String), AttachmentGet(String), AttachmentList, CustomFieldAdd(String), CustomFieldRemove(String),
}
Expand description

任务 API V2 端点枚举

Variants§

§

TaskCreate

创建任务

§

TaskGet(String)

获取任务详情

§

TaskUpdate(String)

更新任务

§

TaskDelete(String)

删除任务

§

TaskComplete(String)

完成任务

§

TaskUncomplete(String)

取消完成任务

§

TaskList

获取任务列表

§

TasklistCreate

创建任务清单

§

TasklistGet(String)

获取任务清单详情

§

TasklistUpdate(String)

更新任务清单

§

TasklistDelete(String)

删除任务清单

§

TasklistList

获取任务清单列表

§

SectionCreate(String)

创建分组

§

SectionGet(String, String)

获取分组详情

§

SectionUpdate(String, String)

更新分组

§

SectionDelete(String, String)

删除分组

§

SectionList(String)

获取分组列表

§

CustomFieldCreate(String)

创建自定义字段

§

CustomFieldGet(String, String)

获取自定义字段详情

§

CustomFieldUpdate(String, String)

更新自定义字段

§

CustomFieldDelete(String, String)

删除自定义字段

§

CustomFieldList(String)

获取自定义字段列表

§

CommentCreate(String)

创建评论

§

CommentGet(String, String)

获取评论详情

§

CommentUpdate(String, String)

更新评论

§

CommentDelete(String, String)

删除评论

§

CommentList(String)

获取评论列表

§

AttachmentUpload(String)

上传附件

§

AttachmentDelete(String, String)

删除附件

§

SubtaskCreate(String)

创建子任务

§

SubtaskList(String)

获取子任务列表

§

TaskAddTasklist(String)

添加任务到任务清单

§

TaskRemoveTasklist(String)

从任务清单移除任务

§

TaskGetTasklists(String)

获取任务所属任务清单列表

§

TaskAddMembers(String)

添加任务成员

§

TaskRemoveMembers(String)

移除任务成员

§

TaskAddReminders(String)

添加任务提醒

§

TaskRemoveReminders(String)

移除任务提醒

§

TaskAddDependencies(String)

添加任务依赖

§

TaskRemoveDependencies(String)

移除任务依赖

§

TasklistGetTasks(String)

获取任务清单中的任务列表

§

TasklistAddMembers(String)

添加任务清单成员

§

TasklistRemoveMembers(String)

移除任务清单成员

§

SectionGetTasks(String)

获取分组中的任务列表

§

ActivitySubscriptionCreate(String)

创建活动订阅

§

ActivitySubscriptionGet(String, String)

获取活动订阅详情

§

ActivitySubscriptionUpdate(String, String)

更新活动订阅

§

ActivitySubscriptionDelete(String, String)

删除活动订阅

§

ActivitySubscriptionList(String)

获取活动订阅列表

§

CustomFieldOptionCreate(String)

创建自定义字段选项

§

CustomFieldOptionUpdate(String, String)

更新自定义字段选项

§

AttachmentGet(String)

获取附件详情

§

AttachmentList

获取附件列表

§

CustomFieldAdd(String)

添加自定义字段到任务清单

§

CustomFieldRemove(String)

从任务清单移除自定义字段

Implementations§

Source§

impl TaskApiV2

Source

pub fn to_url(&self) -> String

生成对应的 URL

Trait Implementations§

Source§

impl Clone for TaskApiV2

Source§

fn clone(&self) -> TaskApiV2

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TaskApiV2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TaskApiV2

Source§

fn eq(&self, other: &TaskApiV2) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TaskApiV2

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more