pub struct MarketTransaction {
pub waypoint_symbol: String,
pub ship_symbol: String,
pub trade_symbol: String,
pub type: Type,
pub units: i32,
pub price_per_unit: i32,
pub total_price: i32,
pub timestamp: String,
}Expand description
MarketTransaction : Result of a transaction with a market.
Fields§
§waypoint_symbol: StringThe symbol of the waypoint.
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: i32The number of units of the transaction.
price_per_unit: i32The price per unit of the transaction.
total_price: i32The 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 Default for MarketTransaction
impl Default for MarketTransaction
Source§fn default() -> MarketTransaction
fn default() -> MarketTransaction
Returns the “default value” for a type. Read more
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