pub struct EmbeddedTaskDef {
pub name: String,
pub retry_count: i32,
pub timeout_seconds: i64,
pub response_timeout_seconds: i64,
}Expand description
Embedded task definition (for inline task defs in workflow tasks).
Fields§
§name: StringTask name.
retry_count: i32Retry count.
timeout_seconds: i64Timeout seconds.
response_timeout_seconds: i64Response timeout seconds.
Implementations§
Source§impl EmbeddedTaskDef
impl EmbeddedTaskDef
Sourcepub fn with_retry_count(self, count: i32) -> Self
pub fn with_retry_count(self, count: i32) -> Self
Set retry count.
Sourcepub fn with_timeout(self, seconds: i64) -> Self
pub fn with_timeout(self, seconds: i64) -> Self
Set timeout.
Trait Implementations§
Source§impl Clone for EmbeddedTaskDef
impl Clone for EmbeddedTaskDef
Source§impl Debug for EmbeddedTaskDef
impl Debug for EmbeddedTaskDef
Source§impl Default for EmbeddedTaskDef
impl Default for EmbeddedTaskDef
Source§impl<'de> Deserialize<'de> for EmbeddedTaskDef
impl<'de> Deserialize<'de> for EmbeddedTaskDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmbeddedTaskDef
impl RefUnwindSafe for EmbeddedTaskDef
impl Send for EmbeddedTaskDef
impl Sync for EmbeddedTaskDef
impl Unpin for EmbeddedTaskDef
impl UnsafeUnpin for EmbeddedTaskDef
impl UnwindSafe for EmbeddedTaskDef
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