pub struct Job {
pub job_id: String,
pub status: JobStatus,
pub proof_path: Option<String>,
pub tx_hash: Option<String>,
pub attestation_hash: Option<String>,
pub reason: Option<String>,
}Expand description
Response from GET /v1/jobs/{id}.
Note: attestation_hash requires the gateway’s JobStatusResponse to
include the field. Add attestation_hash: Option<String> to that struct
and populate it from the DB row. Until then this field will always be None.
Fields§
§job_id: String§status: JobStatus§proof_path: Option<String>§tx_hash: Option<String>§attestation_hash: Option<String>Populated once the gateway exposes it (see impl guide §6c).
reason: Option<String>Present when status is failed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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