pub struct TaskBuilder<___State = __TaskBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build()
.
Implementations§
Source§impl<__Id, __ContextId, __Status, __Artifacts, __History, __Metadata, __Kind> TaskBuilder<(__Id, __ContextId, __Status, __Artifacts, __History, __Metadata, __Kind)>
impl<__Id, __ContextId, __Status, __Artifacts, __History, __Metadata, __Kind> TaskBuilder<(__Id, __ContextId, __Status, __Artifacts, __History, __Metadata, __Kind)>
Sourcepub fn build(self) -> Taskwhere
__Id: IntoSet<String, TaskBuilder__id>,
__ContextId: IntoSet<String, TaskBuilder__context_id>,
__Status: IntoSet<Option<TaskStatus>, TaskBuilder__status>,
__Artifacts: IntoSet<Option<Vec<Artifact>>, TaskBuilder__artifacts>,
__History: IntoSet<Option<Vec<Message>>, TaskBuilder__history>,
__Metadata: IntoSet<Option<Map<String, Value>>, TaskBuilder__metadata>,
__Kind: IntoSet<Option<String>, TaskBuilder__kind>,
pub fn build(self) -> Taskwhere
__Id: IntoSet<String, TaskBuilder__id>,
__ContextId: IntoSet<String, TaskBuilder__context_id>,
__Status: IntoSet<Option<TaskStatus>, TaskBuilder__status>,
__Artifacts: IntoSet<Option<Vec<Artifact>>, TaskBuilder__artifacts>,
__History: IntoSet<Option<Vec<Message>>, TaskBuilder__history>,
__Metadata: IntoSet<Option<Map<String, Value>>, TaskBuilder__metadata>,
__Kind: IntoSet<Option<String>, TaskBuilder__kind>,
Finishes building and returns the requested object.
Sourcepub fn id(self, value: String) -> <Self as __TaskBuilderSetMember>::Idwhere
__Id: IsUnset,
pub fn id(self, value: String) -> <Self as __TaskBuilderSetMember>::Idwhere
__Id: IsUnset,
Sets the value of id
. See Task::builder()
for more info.
Sourcepub fn context_id(
self,
value: String,
) -> <Self as __TaskBuilderSetMember>::ContextIdwhere
__ContextId: IsUnset,
pub fn context_id(
self,
value: String,
) -> <Self as __TaskBuilderSetMember>::ContextIdwhere
__ContextId: IsUnset,
Sets the value of context_id
. See Task::builder()
for more info.
Sourcepub fn maybe_status(
self,
value: Option<TaskStatus>,
) -> <Self as __TaskBuilderSetMember>::Statuswhere
__Status: IsUnset,
pub fn maybe_status(
self,
value: Option<TaskStatus>,
) -> <Self as __TaskBuilderSetMember>::Statuswhere
__Status: IsUnset,
Same as Self::status
, but accepts an Option
as input. See that method’s documentation for more details.
Sourcepub fn status(
self,
value: TaskStatus,
) -> <Self as __TaskBuilderSetMember>::Statuswhere
__Status: IsUnset,
pub fn status(
self,
value: TaskStatus,
) -> <Self as __TaskBuilderSetMember>::Statuswhere
__Status: IsUnset,
Sets the value of status
. See Task::builder()
for more info.
Sourcepub fn maybe_artifacts(
self,
value: Option<Vec<Artifact>>,
) -> <Self as __TaskBuilderSetMember>::Artifactswhere
__Artifacts: IsUnset,
pub fn maybe_artifacts(
self,
value: Option<Vec<Artifact>>,
) -> <Self as __TaskBuilderSetMember>::Artifactswhere
__Artifacts: IsUnset,
Same as Self::artifacts
, but accepts an Option
as input. See that method’s documentation for more details.
Sourcepub fn artifacts(
self,
value: Vec<Artifact>,
) -> <Self as __TaskBuilderSetMember>::Artifactswhere
__Artifacts: IsUnset,
pub fn artifacts(
self,
value: Vec<Artifact>,
) -> <Self as __TaskBuilderSetMember>::Artifactswhere
__Artifacts: IsUnset,
Sets the value of artifacts
. See Task::builder()
for more info.
Sourcepub fn maybe_history(
self,
value: Option<Vec<Message>>,
) -> <Self as __TaskBuilderSetMember>::Historywhere
__History: IsUnset,
pub fn maybe_history(
self,
value: Option<Vec<Message>>,
) -> <Self as __TaskBuilderSetMember>::Historywhere
__History: IsUnset,
Same as Self::history
, but accepts an Option
as input. See that method’s documentation for more details.
Sourcepub fn history(
self,
value: Vec<Message>,
) -> <Self as __TaskBuilderSetMember>::Historywhere
__History: IsUnset,
pub fn history(
self,
value: Vec<Message>,
) -> <Self as __TaskBuilderSetMember>::Historywhere
__History: IsUnset,
Sets the value of history
. See Task::builder()
for more info.
Sourcepub fn maybe_metadata(
self,
value: Option<Map<String, Value>>,
) -> <Self as __TaskBuilderSetMember>::Metadatawhere
__Metadata: IsUnset,
pub fn maybe_metadata(
self,
value: Option<Map<String, Value>>,
) -> <Self as __TaskBuilderSetMember>::Metadatawhere
__Metadata: IsUnset,
Same as Self::metadata
, but accepts an Option
as input. See that method’s documentation for more details.
Sourcepub fn metadata(
self,
value: Map<String, Value>,
) -> <Self as __TaskBuilderSetMember>::Metadatawhere
__Metadata: IsUnset,
pub fn metadata(
self,
value: Map<String, Value>,
) -> <Self as __TaskBuilderSetMember>::Metadatawhere
__Metadata: IsUnset,
Sets the value of metadata
. See Task::builder()
for more info.
Sourcepub fn maybe_kind(
self,
value: Option<String>,
) -> <Self as __TaskBuilderSetMember>::Kindwhere
__Kind: IsUnset,
pub fn maybe_kind(
self,
value: Option<String>,
) -> <Self as __TaskBuilderSetMember>::Kindwhere
__Kind: IsUnset,
Same as Self::kind
, but accepts an Option
as input. See that method’s documentation for more details.
Sourcepub fn kind(self, value: String) -> <Self as __TaskBuilderSetMember>::Kindwhere
__Kind: IsUnset,
pub fn kind(self, value: String) -> <Self as __TaskBuilderSetMember>::Kindwhere
__Kind: IsUnset,
Sets the value of kind
. See Task::builder()
for more info.