pub struct WorkflowTaskCreate {
pub summary: String,
pub description: Option<String>,
pub start: Option<String>,
pub due: Option<String>,
pub priority: Option<i32>,
pub assignee: Option<String>,
pub tasklist_guid: Option<String>,
pub section_guid: Option<String>,
pub followers: Option<Vec<String>>,
pub remind_time: Option<String>,
}Expand description
任务创建 helper。
只覆盖高频创建字段(标题、描述、截止、优先级、执行者、所属清单等),
不试图替代完整 typed CreateTaskRequest(自定义字段 / 子任务 / 重复规则等仍走 typed API)。
Fields§
§summary: String任务标题(必填)。
description: Option<String>任务描述。
start: Option<String>开始时间。
due: Option<String>截止时间。
priority: Option<i32>优先级。
assignee: Option<String>执行者。
tasklist_guid: Option<String>任务清单 GUID。
section_guid: Option<String>分组 GUID。
followers: Option<Vec<String>>关注者。
remind_time: Option<String>提醒时间。
Implementations§
Source§impl WorkflowTaskCreate
impl WorkflowTaskCreate
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 remind_time(self, remind_time: impl Into<String>) -> Self
pub fn remind_time(self, remind_time: impl Into<String>) -> Self
设置提醒时间。
Trait Implementations§
Source§impl Clone for WorkflowTaskCreate
impl Clone for WorkflowTaskCreate
Source§fn clone(&self) -> WorkflowTaskCreate
fn clone(&self) -> WorkflowTaskCreate
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 moreSource§impl Debug for WorkflowTaskCreate
impl Debug for WorkflowTaskCreate
Source§impl PartialEq for WorkflowTaskCreate
impl PartialEq for WorkflowTaskCreate
impl StructuralPartialEq for WorkflowTaskCreate
Auto Trait Implementations§
impl Freeze for WorkflowTaskCreate
impl RefUnwindSafe for WorkflowTaskCreate
impl Send for WorkflowTaskCreate
impl Sync for WorkflowTaskCreate
impl Unpin for WorkflowTaskCreate
impl UnsafeUnpin for WorkflowTaskCreate
impl UnwindSafe for WorkflowTaskCreate
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