pub struct CreateTaskRequest { /* private fields */ }Expand description
创建任务请求
Implementations§
Source§impl CreateTaskRequest
impl CreateTaskRequest
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
设置任务描述
Sourcepub fn tasklist_guid(self, tasklist_guid: impl Into<String>) -> Self
pub fn tasklist_guid(self, tasklist_guid: impl Into<String>) -> Self
设置任务所属的任务清单 GUID
Sourcepub fn section_guid(self, section_guid: impl Into<String>) -> Self
pub fn section_guid(self, section_guid: impl Into<String>) -> Self
设置任务所属的分组 GUID
Sourcepub fn custom_fields(self, custom_fields: Value) -> Self
pub fn custom_fields(self, custom_fields: Value) -> Self
设置自定义字段
Sourcepub fn remind_time(self, remind_time: impl Into<String>) -> Self
pub fn remind_time(self, remind_time: impl Into<String>) -> Self
设置任务提醒时间
Sourcepub fn repeat_rule(self, repeat_rule: Value) -> Self
pub fn repeat_rule(self, repeat_rule: Value) -> Self
设置重复规则
Sourcepub async fn execute(self) -> SDKResult<CreateTaskResponse>
pub async fn execute(self) -> SDKResult<CreateTaskResponse>
执行请求
Sourcepub async fn execute_with_options(
self,
option: RequestOption,
) -> SDKResult<CreateTaskResponse>
pub async fn execute_with_options( self, option: RequestOption, ) -> SDKResult<CreateTaskResponse>
执行请求(带选项)
Trait Implementations§
Source§impl Clone for CreateTaskRequest
impl Clone for CreateTaskRequest
Source§fn clone(&self) -> CreateTaskRequest
fn clone(&self) -> CreateTaskRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateTaskRequest
impl !RefUnwindSafe for CreateTaskRequest
impl Send for CreateTaskRequest
impl Sync for CreateTaskRequest
impl Unpin for CreateTaskRequest
impl UnsafeUnpin for CreateTaskRequest
impl !UnwindSafe for CreateTaskRequest
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
Mutably borrows from an owned value. Read more