pub struct Inventory {
pub entries: Vec<InventoryEntry>,
}
Fields§
§entries: Vec<InventoryEntry>
Trait Implementations§
Source§impl Deserialize for Inventory
impl Deserialize for Inventory
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl Serialize for Inventory
Inventory is sent as a “almost” line-based text format.
Unfortutely there’s no way to simplify this code, it has to mirror
the way Minetest does it exactly, because it is so arbitrary.
impl Serialize for Inventory
Inventory is sent as a “almost” line-based text format. Unfortutely there’s no way to simplify this code, it has to mirror the way Minetest does it exactly, because it is so arbitrary.
impl StructuralPartialEq for Inventory
Auto Trait Implementations§
impl Freeze for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnwindSafe for Inventory
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