pub struct Job {
pub job_id: usize,
pub function_id: usize,
pub flow_id: usize,
pub input_set: Vec<Value>,
pub connections: Vec<OutputConnection>,
pub implementation_url: Url,
pub result: Result<(Option<Value>, RunAgain)>,
}
Expand description
A Job
contains the information necessary to manage the execution of a function in the
flow on a set of input values, and then where to send the outputs that maybe produces.
Fields
job_id: usize
Each Job
has a unique id that increments as jobs are executed
function_id: usize
The id
of the function in the RunState
’s list of functions that will execute this job
flow_id: usize
The id
of the nested flow (from root flow on down) there the function executing the job is
input_set: Vec<Value>
The set of input values to be used by the function when executing this job
connections: Vec<OutputConnection>
The destinations (other function’s inputs) where any output should be sent
implementation_url: Url
The url of the implementation to be run for this job
result: Result<(Option<Value>, RunAgain)>
The result of the execution with optional output Value and if the function should be run again in the future
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
sourcefn 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
impl Send for Job
impl Sync for Job
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more