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