pub struct ExternalTaskFailureDto {
pub worker_id: Option<String>,
pub error_message: Option<String>,
pub error_details: Option<String>,
pub retries: Option<i32>,
pub retry_timeout: Option<i64>,
}Fields§
§worker_id: Option<String>The id of the worker that reports the failure. Must match the id of the worker who has most recently locked the task.
error_message: Option<String>An message indicating the reason of the failure.
error_details: Option<String>A detailed error description.
retries: Option<i32>A number of how often the task should be retried. Must be >= 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. The incident’s message is set to the errorMessage parameter.
retry_timeout: Option<i64>A timeout in milliseconds before the external task becomes available again for fetching. Must be >= 0.
Implementations§
Source§impl ExternalTaskFailureDto
impl ExternalTaskFailureDto
pub fn new() -> ExternalTaskFailureDto
Trait Implementations§
Source§impl Clone for ExternalTaskFailureDto
impl Clone for ExternalTaskFailureDto
Source§fn clone(&self) -> ExternalTaskFailureDto
fn clone(&self) -> ExternalTaskFailureDto
Returns a duplicate of the value. Read more
1.0.0 · 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 ExternalTaskFailureDto
impl Debug for ExternalTaskFailureDto
Source§impl<'de> Deserialize<'de> for ExternalTaskFailureDto
impl<'de> Deserialize<'de> for ExternalTaskFailureDto
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
Source§impl PartialEq for ExternalTaskFailureDto
impl PartialEq for ExternalTaskFailureDto
Source§impl Serialize for ExternalTaskFailureDto
impl Serialize for ExternalTaskFailureDto
impl StructuralPartialEq for ExternalTaskFailureDto
Auto Trait Implementations§
impl Freeze for ExternalTaskFailureDto
impl RefUnwindSafe for ExternalTaskFailureDto
impl Send for ExternalTaskFailureDto
impl Sync for ExternalTaskFailureDto
impl Unpin for ExternalTaskFailureDto
impl UnwindSafe for ExternalTaskFailureDto
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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