Struct Component
pub struct Component {
pub suffix: String,
pub instrument: AnyInstrument,
pub quantity: f64,
}Expand description
One component a trade books: its product, or a dated amount beside it.
Fields§
§suffix: StringAppended to the trade’s identifier: empty for the product,
/fee/1, /premium/1, /floor/1 for the rest.
instrument: AnyInstrumentWhat is booked.
quantity: f64How much: 1 where the instrument carries its own side, -1 for one without a side the reporting party sells.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl !RefUnwindSafe for Component
impl !UnwindSafe for Component
impl Freeze for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
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