pub struct MarketTransaction {
pub waypoint_symbol: String,
pub ship_symbol: String,
pub trade_symbol: String,
pub type: Type,
pub units: u32,
pub price_per_unit: u32,
pub total_price: u32,
pub timestamp: String,
}Expand description
Result of a transaction with a market.
Fields§
§waypoint_symbol: StringThe symbol of the waypoint where the transaction took place.
ship_symbol: StringThe symbol of the ship that made the transaction.
trade_symbol: StringThe symbol of the trade good.
type: TypeThe type of transaction.
units: u32The number of units of the transaction.
price_per_unit: u32The price per unit of the transaction.
total_price: u32The total price of the transaction.
timestamp: StringThe timestamp of the transaction.
Implementations§
Trait Implementations§
Source§impl Clone for MarketTransaction
impl Clone for MarketTransaction
Source§fn clone(&self) -> MarketTransaction
fn clone(&self) -> MarketTransaction
Returns a duplicate of the value. Read more
1.0.0 · 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 MarketTransaction
impl Debug for MarketTransaction
Source§impl<'de> Deserialize<'de> for MarketTransaction
impl<'de> Deserialize<'de> for MarketTransaction
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 MarketTransaction
impl PartialEq for MarketTransaction
Source§impl Serialize for MarketTransaction
impl Serialize for MarketTransaction
impl StructuralPartialEq for MarketTransaction
Auto Trait Implementations§
impl Freeze for MarketTransaction
impl RefUnwindSafe for MarketTransaction
impl Send for MarketTransaction
impl Sync for MarketTransaction
impl Unpin for MarketTransaction
impl UnwindSafe for MarketTransaction
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