pub struct Combo {
pub id: String,
pub instrument_id: u64,
pub state: ComboState,
pub state_timestamp: u64,
pub creation_timestamp: u64,
pub legs: Vec<ComboLeg>,
}Expand description
Combo instrument information
Contains full details about a combo instrument including its legs, state, and timestamps.
Fields§
§id: StringUnique combo identifier (e.g., “BTC-FS-29APR22_PERP”)
instrument_id: u64Numeric instrument ID
state: ComboStateCurrent state of the combo
state_timestamp: u64Timestamp of the last state change in milliseconds since Unix epoch
creation_timestamp: u64Timestamp when the combo was created in milliseconds since Unix epoch
legs: Vec<ComboLeg>List of legs that make up this combo
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Combo
impl<'de> Deserialize<'de> for Combo
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
impl Eq for Combo
impl StructuralPartialEq for Combo
Auto Trait Implementations§
impl Freeze for Combo
impl RefUnwindSafe for Combo
impl Send for Combo
impl Sync for Combo
impl Unpin for Combo
impl UnsafeUnpin for Combo
impl UnwindSafe for Combo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.