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