pub enum MarketUiMode {
Browse,
ListSource {
index: usize,
},
ListPick {
source: MarketListSourceKind,
index: usize,
},
ListAmount {
source: MarketListSourceKind,
pick_index: usize,
item_instance_id: Uuid,
label: String,
max_qty: u32,
input: String,
},
ListPrice {
source: MarketListSourceKind,
item_instance_id: Uuid,
label: String,
quantity: Option<u32>,
max_qty: u32,
input: String,
},
}Expand description
Market hall clerk focus (browse vs list wizard).
Variants§
Browse
ListSource
Pick on-person vs an eligible town vault.
ListPick
Pick a stack from the chosen source.
ListAmount
Quantity to list (blank/0 = all).
Fields
§
source: MarketListSourceKindListPrice
Unit price in copper.
Trait Implementations§
Source§impl Clone for MarketUiMode
impl Clone for MarketUiMode
Source§fn clone(&self) -> MarketUiMode
fn clone(&self) -> MarketUiMode
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 MarketUiMode
impl Debug for MarketUiMode
Source§impl Default for MarketUiMode
impl Default for MarketUiMode
Source§fn default() -> MarketUiMode
fn default() -> MarketUiMode
Returns the “default value” for a type. Read more
impl Eq for MarketUiMode
Source§impl PartialEq for MarketUiMode
impl PartialEq for MarketUiMode
impl StructuralPartialEq for MarketUiMode
Auto Trait Implementations§
impl Freeze for MarketUiMode
impl RefUnwindSafe for MarketUiMode
impl Send for MarketUiMode
impl Sync for MarketUiMode
impl Unpin for MarketUiMode
impl UnsafeUnpin for MarketUiMode
impl UnwindSafe for MarketUiMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.