pub struct WorkerJob {
pub id: String,
pub input: Value,
pub extra: Map<String, Value>,
}Available on crate feature
serverless only.Expand description
A job acquired by a RunPod Serverless worker.
Fields§
§id: StringRunPod request id.
input: ValueUser-submitted payload from the endpoint request’s input field.
extra: Map<String, Value>Any additional fields RunPod includes with the job.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkerJob
impl<'de> Deserialize<'de> for WorkerJob
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 WorkerJob
impl RefUnwindSafe for WorkerJob
impl Send for WorkerJob
impl Sync for WorkerJob
impl Unpin for WorkerJob
impl UnsafeUnpin for WorkerJob
impl UnwindSafe for WorkerJob
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