pub struct CraftParams {
pub name: String,
pub crafting_schema: CraftingSchema,
}Expand description
struct for passing parameters to the method craft
Fields§
§name: StringName of your character.
crafting_schema: CraftingSchemaImplementations§
Source§impl CraftParams
impl CraftParams
pub fn new(name: String, crafting_schema: CraftingSchema) -> Self
Trait Implementations§
Source§impl Clone for CraftParams
impl Clone for CraftParams
Source§fn clone(&self) -> CraftParams
fn clone(&self) -> CraftParams
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 CraftParams
impl RefUnwindSafe for CraftParams
impl Send for CraftParams
impl Sync for CraftParams
impl Unpin for CraftParams
impl UnwindSafe for CraftParams
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