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