pub struct ExecutionOutcome {
pub job_id: Option<String>,
pub request_id: Option<String>,
pub status: OutcomeStatus,
pub result: Option<Value>,
pub error: Option<ExecutionError>,
pub retry_after_seconds: Option<f64>,
}Fields§
§job_id: Option<String>§request_id: Option<String>§status: OutcomeStatus§result: Option<Value>§error: Option<ExecutionError>§retry_after_seconds: Option<f64>Implementations§
Source§impl ExecutionOutcome
impl ExecutionOutcome
pub fn success<T: Serialize>( job_id: impl Into<String>, request_id: impl Into<String>, result: T, ) -> Self
pub fn retry( job_id: impl Into<String>, request_id: impl Into<String>, message: impl Into<String>, retry_after_seconds: Option<f64>, ) -> Self
pub fn timeout( job_id: impl Into<String>, request_id: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn error( job_id: impl Into<String>, request_id: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn handler_not_found( job_id: impl Into<String>, request_id: impl Into<String>, message: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
Source§fn clone(&self) -> ExecutionOutcome
fn clone(&self) -> ExecutionOutcome
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 ExecutionOutcome
impl Debug for ExecutionOutcome
Source§impl<'de> Deserialize<'de> for ExecutionOutcome
impl<'de> Deserialize<'de> for ExecutionOutcome
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 ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
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