pub struct CraftingJob {
pub id: u64,
pub recipe_id: String,
pub ingredients_consumed: Vec<(String, u32)>,
pub started_at: f32,
pub duration: f32,
pub quantity: u32,
pub owner_id: String,
}Expand description
A single crafting task in the queue.
Fields§
§id: u64§recipe_id: String§ingredients_consumed: Vec<(String, u32)>Ingredients consumed when this job started, as (item_id, quantity).
started_at: f32Timestamp (game time seconds) when this job started.
duration: f32Total duration of this job in seconds.
quantity: u32How many craft cycles to run (batch crafting).
owner_id: StringPlayer/entity that owns this job.
Implementations§
Source§impl CraftingJob
impl CraftingJob
Trait Implementations§
Source§impl Clone for CraftingJob
impl Clone for CraftingJob
Source§fn clone(&self) -> CraftingJob
fn clone(&self) -> CraftingJob
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 moreAuto Trait Implementations§
impl Freeze for CraftingJob
impl RefUnwindSafe for CraftingJob
impl Send for CraftingJob
impl Sync for CraftingJob
impl Unpin for CraftingJob
impl UnsafeUnpin for CraftingJob
impl UnwindSafe for CraftingJob
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