pub struct PlayTradeListSpec {
pub window_id: VarInt,
pub trades: CountedArray<TradeSpec, i8>,
pub villager_level: VarInt,
pub experience: VarInt,
pub regular_villager: bool,
pub can_restock: bool,
}Fields§
§window_id: VarInt§trades: CountedArray<TradeSpec, i8>§villager_level: VarInt§experience: VarInt§regular_villager: bool§can_restock: boolTrait Implementations§
Source§impl Clone for PlayTradeListSpec
impl Clone for PlayTradeListSpec
Source§fn clone(&self) -> PlayTradeListSpec
fn clone(&self) -> PlayTradeListSpec
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 moreSource§impl Debug for PlayTradeListSpec
impl Debug for PlayTradeListSpec
Source§impl Deserialize for PlayTradeListSpec
impl Deserialize for PlayTradeListSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(VarInt, CountedArray<TradeSpec, i8>, VarInt, VarInt, bool, bool)> for PlayTradeListSpec
impl From<(VarInt, CountedArray<TradeSpec, i8>, VarInt, VarInt, bool, bool)> for PlayTradeListSpec
Source§impl From<PlayTradeListSpec> for (VarInt, CountedArray<TradeSpec, i8>, VarInt, VarInt, bool, bool)
impl From<PlayTradeListSpec> for (VarInt, CountedArray<TradeSpec, i8>, VarInt, VarInt, bool, bool)
Source§fn from(other: PlayTradeListSpec) -> Self
fn from(other: PlayTradeListSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayTradeListSpec
impl PartialEq for PlayTradeListSpec
Source§impl Serialize for PlayTradeListSpec
impl Serialize for PlayTradeListSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayTradeListSpec
Auto Trait Implementations§
impl Freeze for PlayTradeListSpec
impl RefUnwindSafe for PlayTradeListSpec
impl Send for PlayTradeListSpec
impl Sync for PlayTradeListSpec
impl Unpin for PlayTradeListSpec
impl UnwindSafe for PlayTradeListSpec
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