pub enum StorageUiMode {
Menu,
StorePick {
index: usize,
},
StoreAmount {
pick_index: usize,
item_instance_id: Uuid,
label: String,
max_qty: u32,
input: String,
},
TakePick {
index: usize,
},
TakeAmount {
pick_index: usize,
item_instance_id: Uuid,
label: String,
max_qty: u32,
input: String,
},
ShipPick {
dest_building_id: String,
dest_label: String,
index: usize,
},
ShipAmount {
dest_building_id: String,
dest_label: String,
pick_index: usize,
item_instance_id: Uuid,
label: String,
max_qty: u32,
input: String,
},
}Expand description
Town storage manager focus (action list vs item pickers vs quantity).
Variants§
Menu
StorePick
Pick a loose on-person stack to store.
StoreAmount
Quantity for a chosen store stack (blank/0 = all).
TakePick
Pick a vault stack to take.
TakeAmount
Quantity for a chosen take stack (blank/0 = all).
ShipPick
Pick a vault stack to ship to dest_building_id.
ShipAmount
Quantity for a chosen ship stack (blank/0 = all).
Trait Implementations§
Source§impl Clone for StorageUiMode
impl Clone for StorageUiMode
Source§fn clone(&self) -> StorageUiMode
fn clone(&self) -> StorageUiMode
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 StorageUiMode
impl Debug for StorageUiMode
Source§impl Default for StorageUiMode
impl Default for StorageUiMode
Source§fn default() -> StorageUiMode
fn default() -> StorageUiMode
Returns the “default value” for a type. Read more
impl Eq for StorageUiMode
Source§impl PartialEq for StorageUiMode
impl PartialEq for StorageUiMode
impl StructuralPartialEq for StorageUiMode
Auto Trait Implementations§
impl Freeze for StorageUiMode
impl RefUnwindSafe for StorageUiMode
impl Send for StorageUiMode
impl Sync for StorageUiMode
impl Unpin for StorageUiMode
impl UnsafeUnpin for StorageUiMode
impl UnwindSafe for StorageUiMode
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.