pub struct WorkerEquipmentView {
pub mainhand: Option<ItemStack>,
pub offhand: Option<ItemStack>,
pub worn: Vec<(BodySlot, ItemStack)>,
}Expand description
Equipment currently worn by a player-hired worker.
Equipped items are separate from HiredWorkerView::inventory; the latter
contains only the worker’s loose/root pack contents.
Fields§
§mainhand: Option<ItemStack>§offhand: Option<ItemStack>§worn: Vec<(BodySlot, ItemStack)>Trait Implementations§
Source§impl Clone for WorkerEquipmentView
impl Clone for WorkerEquipmentView
Source§fn clone(&self) -> WorkerEquipmentView
fn clone(&self) -> WorkerEquipmentView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerEquipmentView
impl Debug for WorkerEquipmentView
Source§impl Default for WorkerEquipmentView
impl Default for WorkerEquipmentView
Source§fn default() -> WorkerEquipmentView
fn default() -> WorkerEquipmentView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerEquipmentView
impl<'de> Deserialize<'de> for WorkerEquipmentView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkerEquipmentView
impl PartialEq for WorkerEquipmentView
Source§impl Serialize for WorkerEquipmentView
impl Serialize for WorkerEquipmentView
impl StructuralPartialEq for WorkerEquipmentView
Auto Trait Implementations§
impl Freeze for WorkerEquipmentView
impl RefUnwindSafe for WorkerEquipmentView
impl Send for WorkerEquipmentView
impl Sync for WorkerEquipmentView
impl Unpin for WorkerEquipmentView
impl UnsafeUnpin for WorkerEquipmentView
impl UnwindSafe for WorkerEquipmentView
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