pub struct ShipModificationTransaction {
pub ship_symbol: String,
pub timestamp: DateTime<Utc>,
pub total_price: u64,
pub trade_symbol: String,
pub waypoint_symbol: String,
}Expand description
Result of a transaction for a ship modification, such as installing a mount or a module.
JSON schema
{
"description": "Result of a transaction for a ship modification, such as installing a mount or a module.",
"type": "object",
"required": [
"shipSymbol",
"timestamp",
"totalPrice",
"tradeSymbol",
"waypointSymbol"
],
"properties": {
"shipSymbol": {
"description": "The symbol of the ship that made the transaction.",
"type": "string"
},
"timestamp": {
"description": "The timestamp of the transaction.",
"type": "string",
"format": "date-time"
},
"totalPrice": {
"description": "The total price of the transaction.",
"type": "integer",
"minimum": 0.0
},
"tradeSymbol": {
"description": "The symbol of the trade good.",
"type": "string"
},
"waypointSymbol": {
"description": "The symbol of the waypoint where the transaction took place.",
"type": "string"
}
}
}Fields§
§ship_symbol: StringThe symbol of the ship that made the transaction.
timestamp: DateTime<Utc>The timestamp of the transaction.
total_price: u64The total price of the transaction.
trade_symbol: StringThe symbol of the trade good.
waypoint_symbol: StringThe symbol of the waypoint where the transaction took place.
Trait Implementations§
Source§impl Clone for ShipModificationTransaction
impl Clone for ShipModificationTransaction
Source§fn clone(&self) -> ShipModificationTransaction
fn clone(&self) -> ShipModificationTransaction
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 ShipModificationTransaction
impl Debug for ShipModificationTransaction
Source§impl<'de> Deserialize<'de> for ShipModificationTransaction
impl<'de> Deserialize<'de> for ShipModificationTransaction
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
Auto Trait Implementations§
impl Freeze for ShipModificationTransaction
impl RefUnwindSafe for ShipModificationTransaction
impl Send for ShipModificationTransaction
impl Sync for ShipModificationTransaction
impl Unpin for ShipModificationTransaction
impl UnsafeUnpin for ShipModificationTransaction
impl UnwindSafe for ShipModificationTransaction
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