pub struct WorkItem {
pub service: ServiceId,
pub code_hash: OpaqueHash,
pub refine_gas_limit: Gas,
pub accumulate_gas_limit: Gas,
pub export_count: u16,
pub payload: Vec<u8>,
pub import_segments: Vec<ImportSpec>,
pub extrinsic: Vec<ExtrinsicSpec>,
}Expand description
Represents an individual work item within a work package.
Fields§
§service: ServiceId(s) The service
code_hash: OpaqueHash(h) The code hash
refine_gas_limit: Gas(g) The refine gas limit
accumulate_gas_limit: Gas(a) The accumulate gas limit
export_count: u16(e) The export count
MAX=W_X=3072
payload: Vec<u8>(y) The payload
import_segments: Vec<ImportSpec>(i) The import segments
MAX=W_M=3072
extrinsic: Vec<ExtrinsicSpec>(x) The extrinsic
MAX=T=128
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkItem
impl<'de> Deserialize<'de> for WorkItem
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
impl Eq for WorkItem
impl StructuralPartialEq for WorkItem
Auto Trait Implementations§
impl Freeze for WorkItem
impl RefUnwindSafe for WorkItem
impl Send for WorkItem
impl Sync for WorkItem
impl Unpin for WorkItem
impl UnwindSafe for WorkItem
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