pub struct ChartTransaction {
pub ship_symbol: String,
pub timestamp: DateTime<Utc>,
pub total_price: u64,
pub waypoint_symbol: WaypointSymbol,
}Expand description
Result of a chart transaction.
JSON schema
{
"description": "Result of a chart transaction.",
"type": "object",
"required": [
"shipSymbol",
"timestamp",
"totalPrice",
"waypointSymbol"
],
"properties": {
"shipSymbol": {
"description": "The symbol of the ship.",
"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
},
"waypointSymbol": {
"$ref": "#/components/schemas/WaypointSymbol"
}
}
}Fields§
§ship_symbol: StringThe symbol of the ship.
timestamp: DateTime<Utc>The timestamp of the transaction.
total_price: u64The total price of the transaction.
waypoint_symbol: WaypointSymbolTrait Implementations§
Source§impl Clone for ChartTransaction
impl Clone for ChartTransaction
Source§fn clone(&self) -> ChartTransaction
fn clone(&self) -> ChartTransaction
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 ChartTransaction
impl Debug for ChartTransaction
Source§impl<'de> Deserialize<'de> for ChartTransaction
impl<'de> Deserialize<'de> for ChartTransaction
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 ChartTransaction
impl RefUnwindSafe for ChartTransaction
impl Send for ChartTransaction
impl Sync for ChartTransaction
impl Unpin for ChartTransaction
impl UnsafeUnpin for ChartTransaction
impl UnwindSafe for ChartTransaction
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