pub struct ContractDeliverGood {
pub trade_symbol: String,
pub destination_symbol: String,
pub units_required: i32,
pub units_fulfilled: i32,
}Expand description
The details of a delivery contract. Includes the type of good, units needed, and the destination.
Fields§
§trade_symbol: StringThe symbol of the trade good to deliver.
destination_symbol: StringThe destination where goods need to be delivered.
units_required: i32The number of units that need to be delivered on this contract.
units_fulfilled: i32The number of units fulfilled on this contract.
Implementations§
Trait Implementations§
Source§impl Clone for ContractDeliverGood
impl Clone for ContractDeliverGood
Source§fn clone(&self) -> ContractDeliverGood
fn clone(&self) -> ContractDeliverGood
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 ContractDeliverGood
impl Debug for ContractDeliverGood
Source§impl<'de> Deserialize<'de> for ContractDeliverGood
impl<'de> Deserialize<'de> for ContractDeliverGood
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 ContractDeliverGood
impl PartialEq for ContractDeliverGood
Source§impl Serialize for ContractDeliverGood
impl Serialize for ContractDeliverGood
impl StructuralPartialEq for ContractDeliverGood
Auto Trait Implementations§
impl Freeze for ContractDeliverGood
impl RefUnwindSafe for ContractDeliverGood
impl Send for ContractDeliverGood
impl Sync for ContractDeliverGood
impl Unpin for ContractDeliverGood
impl UnwindSafe for ContractDeliverGood
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