pub struct TradeUiState {
pub panel: Option<TradePanel>,
pub select_index: usize,
pub picking_inventory: bool,
pub inventory_index: usize,
pub qty_entry: Option<TradeQtyEntry>,
}Fields§
§panel: Option<TradePanel>§select_index: usize§picking_inventory: bool§inventory_index: usize§qty_entry: Option<TradeQtyEntry>Presenting a stack — choose how many (like storage).
Implementations§
Source§impl TradeUiState
impl TradeUiState
pub fn open(&mut self, panel: TradePanel)
pub fn close(&mut self)
pub fn apply(&mut self, panel: TradePanel)
pub fn begin_qty_entry( &mut self, item_instance_id: Uuid, label: String, max_qty: u32, )
pub fn adjust_qty(&mut self, delta: i32)
pub fn set_qty_all(&mut self)
pub fn append_qty_digit(&mut self, c: char)
pub fn qty_backspace(&mut self)
Sourcepub fn present_quantity(&self) -> Option<u32>
pub fn present_quantity(&self) -> Option<u32>
Intent quantity: None means entire stack.
Trait Implementations§
Source§impl Clone for TradeUiState
impl Clone for TradeUiState
Source§fn clone(&self) -> TradeUiState
fn clone(&self) -> TradeUiState
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 TradeUiState
impl Debug for TradeUiState
Source§impl Default for TradeUiState
impl Default for TradeUiState
Source§fn default() -> TradeUiState
fn default() -> TradeUiState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TradeUiState
impl RefUnwindSafe for TradeUiState
impl Send for TradeUiState
impl Sync for TradeUiState
impl Unpin for TradeUiState
impl UnsafeUnpin for TradeUiState
impl UnwindSafe for TradeUiState
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