pub struct CreateTaskRequestV1 { /* private fields */ }Expand description
创建任务请求(v1) 创建任务请求构建器。
Implementations§
Source§impl CreateTaskRequestV1
impl CreateTaskRequestV1
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
设置任务描述
Sourcepub async fn execute(self) -> SDKResult<CreateTaskResponseV1>
pub async fn execute(self) -> SDKResult<CreateTaskResponseV1>
执行请求
Sourcepub async fn execute_with_options(
self,
option: RequestOption,
) -> SDKResult<CreateTaskResponseV1>
pub async fn execute_with_options( self, option: RequestOption, ) -> SDKResult<CreateTaskResponseV1>
执行请求(带选项)
Trait Implementations§
Source§impl Clone for CreateTaskRequestV1
impl Clone for CreateTaskRequestV1
Source§fn clone(&self) -> CreateTaskRequestV1
fn clone(&self) -> CreateTaskRequestV1
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 CreateTaskRequestV1
impl !RefUnwindSafe for CreateTaskRequestV1
impl Send for CreateTaskRequestV1
impl Sync for CreateTaskRequestV1
impl Unpin for CreateTaskRequestV1
impl UnsafeUnpin for CreateTaskRequestV1
impl !UnwindSafe for CreateTaskRequestV1
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