pub struct FactoryRecipe {
pub amount: u32,
pub cooldown: u32,
pub components: HashMap<ResourceType, u32>,
pub level: Option<u32>,
}
Expand description
Returned values from ResourceType::commodity_recipe
representing a
commodity that can be produced in factories.
Fields§
§amount: u32
Amount of the component that this recipe creates
cooldown: u32
Cooldown of the factory after creating this recipe
components: HashMap<ResourceType, u32>
Components - resource type and amount
level: Option<u32>
Required factory level to be able to create this commodity, if restricted
Trait Implementations§
Source§impl Clone for FactoryRecipe
impl Clone for FactoryRecipe
Source§fn clone(&self) -> FactoryRecipe
fn clone(&self) -> FactoryRecipe
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 FactoryRecipe
impl RefUnwindSafe for FactoryRecipe
impl Send for FactoryRecipe
impl Sync for FactoryRecipe
impl Unpin for FactoryRecipe
impl UnwindSafe for FactoryRecipe
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