pub struct TradePanel {
pub peer_entity_id: EntityId,
pub peer_name: String,
pub my_presented: Vec<ItemStack>,
pub their_presented: Vec<ItemStack>,
pub i_ready: bool,
pub they_ready: bool,
pub my_mass_after: f32,
pub my_mass_max: f32,
pub my_encumbrance_after: EncumbranceState,
pub overburden_warning: bool,
}Expand description
Live player-to-player trade escrow view (both sides see the same presented buckets).
Fields§
§peer_entity_id: EntityId§peer_name: String§my_presented: Vec<ItemStack>§their_presented: Vec<ItemStack>§i_ready: bool§they_ready: bool§my_mass_after: f32Predicted carry mass after accepting their presented items (and losing mine).
my_mass_max: f32§my_encumbrance_after: EncumbranceState§overburden_warning: boolTrue when completing would put the local player Over.
Trait Implementations§
Source§impl Clone for TradePanel
impl Clone for TradePanel
Source§fn clone(&self) -> TradePanel
fn clone(&self) -> TradePanel
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 TradePanel
impl Debug for TradePanel
Source§impl<'de> Deserialize<'de> for TradePanel
impl<'de> Deserialize<'de> for TradePanel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for TradePanel
impl PartialEq for TradePanel
Source§impl Serialize for TradePanel
impl Serialize for TradePanel
impl StructuralPartialEq for TradePanel
Auto Trait Implementations§
impl Freeze for TradePanel
impl RefUnwindSafe for TradePanel
impl Send for TradePanel
impl Sync for TradePanel
impl Unpin for TradePanel
impl UnsafeUnpin for TradePanel
impl UnwindSafe for TradePanel
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