[][src]Struct mcproto_rs::v1_16_3::TradeSpec

pub struct TradeSpec {
    pub input_item_1: Slot,
    pub output_item: Slot,
    pub input_item_2: Slot,
    pub trade_disabled: bool,
    pub trade_uses: i32,
    pub max_trade_uses: i32,
    pub xp: i32,
    pub special_price: i32,
    pub price_multiplier: f32,
    pub demand: i32,
}

Fields

input_item_1: Slotoutput_item: Slotinput_item_2: Slottrade_disabled: booltrade_uses: i32max_trade_uses: i32xp: i32special_price: i32price_multiplier: f32demand: i32

Trait Implementations

impl Clone for TradeSpec[src]

impl Debug for TradeSpec[src]

impl Deserialize for TradeSpec[src]

impl From<(Option<ItemStack>, Option<ItemStack>, Option<ItemStack>, bool, i32, i32, i32, i32, f32, i32)> for TradeSpec[src]

impl PartialEq<TradeSpec> for TradeSpec[src]

impl Serialize for TradeSpec[src]

impl StructuralPartialEq for TradeSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ProtocolType for T where
    T: Deserialize + Serialize
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,