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