Skip to main content

TradeSetting

Enum TradeSetting 

Source
pub enum TradeSetting {
    Keep {
        material: usize,
        amount: i32,
    },
    Swap(usize, usize),
    Automatic {
        index: usize,
        amount: i32,
    },
    Mode(i32),
    OrderState(i32),
    Order {
        good: usize,
        on: bool,
    },
    Held(bool),
}
Expand description

What the trade window changes on the post’s TradeComponent.

Variants§

§

Keep

Storage tab spinner 2000 + i: what to keep at the post.

Original: FUN_140086f80.

Fields

§material: usize

The raw material.

§amount: i32

The amount to keep.

§

Swap(usize, usize)

Purchase tab up 5000 + i / down 6000 + i: two automatic trades change places.

Original: FUN_1400871d0.

§

Automatic

Purchase tab spinner 7000 + i: the automatic trade’s amount.

Original: FUN_140087120.

Fields

§index: usize

The automatic trade.

§amount: i32

The amount.

§

Mode(i32)

comboPurchase (0x4e22): when it trades by itself.

Original: FUN_140087090.

§

OrderState(i32)

comboOrder (0x4e23): the docked merchant’s order state.

Original: FUN_140087350.

§

Order

Order tab check 8000 + i: a good ordered from the docked merchant.

Original: FUN_1400872a0.

Fields

§good: usize

The good.

§on: bool

Whether it is ordered.

§

Held(bool)

The window is open or closed.

Original: FUN_140087f40, FUN_140087ed0.

Trait Implementations§

Source§

impl Clone for TradeSetting

Source§

fn clone(&self) -> TradeSetting

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TradeSetting

Source§

impl Debug for TradeSetting

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TradeSetting

Source§

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 Eq for TradeSetting

Source§

impl PartialEq for TradeSetting

Source§

fn eq(&self, other: &TradeSetting) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TradeSetting

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TradeSetting

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.