#[non_exhaustive]pub struct PollForTaskOutputBuilder { /* private fields */ }
Expand description
A builder for PollForTaskOutput
.
Implementations§
source§impl PollForTaskOutputBuilder
impl PollForTaskOutputBuilder
sourcepub fn task_object(self, input: TaskObject) -> Self
pub fn task_object(self, input: TaskObject) -> Self
The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is taskId
, which contains an identifier for the task being assigned. The calling task runner uses taskId
in subsequent calls to ReportTaskProgress
and SetTaskStatus
.
sourcepub fn set_task_object(self, input: Option<TaskObject>) -> Self
pub fn set_task_object(self, input: Option<TaskObject>) -> Self
The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is taskId
, which contains an identifier for the task being assigned. The calling task runner uses taskId
in subsequent calls to ReportTaskProgress
and SetTaskStatus
.
sourcepub fn get_task_object(&self) -> &Option<TaskObject>
pub fn get_task_object(&self) -> &Option<TaskObject>
The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is taskId
, which contains an identifier for the task being assigned. The calling task runner uses taskId
in subsequent calls to ReportTaskProgress
and SetTaskStatus
.
sourcepub fn build(self) -> PollForTaskOutput
pub fn build(self) -> PollForTaskOutput
Consumes the builder and constructs a PollForTaskOutput
.
Trait Implementations§
source§impl Clone for PollForTaskOutputBuilder
impl Clone for PollForTaskOutputBuilder
source§fn clone(&self) -> PollForTaskOutputBuilder
fn clone(&self) -> PollForTaskOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PollForTaskOutputBuilder
impl Debug for PollForTaskOutputBuilder
source§impl Default for PollForTaskOutputBuilder
impl Default for PollForTaskOutputBuilder
source§fn default() -> PollForTaskOutputBuilder
fn default() -> PollForTaskOutputBuilder
source§impl PartialEq for PollForTaskOutputBuilder
impl PartialEq for PollForTaskOutputBuilder
impl StructuralPartialEq for PollForTaskOutputBuilder
Auto Trait Implementations§
impl Freeze for PollForTaskOutputBuilder
impl RefUnwindSafe for PollForTaskOutputBuilder
impl Send for PollForTaskOutputBuilder
impl Sync for PollForTaskOutputBuilder
impl Unpin for PollForTaskOutputBuilder
impl UnwindSafe for PollForTaskOutputBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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