pub enum InventoryAction {
Move {
count: u16,
from_inv: InventoryLocation,
from_list: String,
from_i: s16,
to_inv: InventoryLocation,
to_list: String,
to_i: Option<s16>,
},
Craft {
count: u16,
craft_inv: InventoryLocation,
},
Drop {
count: u16,
from_inv: InventoryLocation,
from_list: String,
from_i: s16,
},
}
Variants§
Trait Implementations§
Source§impl Clone for InventoryAction
impl Clone for InventoryAction
Source§fn clone(&self) -> InventoryAction
fn clone(&self) -> InventoryAction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InventoryAction
impl Debug for InventoryAction
Source§impl Deserialize for InventoryAction
impl Deserialize for InventoryAction
Source§type Output = InventoryAction
type Output = InventoryAction
Output should be Self, except for wrapper types.
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl PartialEq for InventoryAction
impl PartialEq for InventoryAction
Source§impl Serialize for InventoryAction
impl Serialize for InventoryAction
type Input = InventoryAction
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for InventoryAction
Auto Trait Implementations§
impl Freeze for InventoryAction
impl RefUnwindSafe for InventoryAction
impl Send for InventoryAction
impl Sync for InventoryAction
impl Unpin for InventoryAction
impl UnwindSafe for InventoryAction
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