pub struct Order {
pub name: String,
pub goods: Vec<usize>,
pub state: i32,
}Expand description
A merchant’s order (TradeComponent, 0x20 bytes): the merchant’s name, the goods ordered and its state (0 none, 1 once, 2 every time).
Fields§
§name: StringThe merchant’s name.
goods: Vec<usize>The goods ordered.
state: i32The order’s state: 0 none, 1 once, 2 every time.
Trait Implementations§
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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