pub enum StreamOptionChainResp {
OptionChain(Box<OptionChain>),
Heartbeat(Heartbeat),
Status(StreamStatus),
Error(ErrorResp),
}Expand description
The TradeStation API Response for streaming an options chain.
Variants§
OptionChain(Box<OptionChain>)
The main response which contains the option chain data.
Heartbeat(Heartbeat)
Periodic signal to know the connection is still alive.
Status(StreamStatus)
Signal sent on state changes in the stream (closed, opened, paused, resumed).
Error(ErrorResp)
Response for when an error was encountered, with details on the error.
Trait Implementations§
Source§impl Clone for StreamOptionChainResp
impl Clone for StreamOptionChainResp
Source§fn clone(&self) -> StreamOptionChainResp
fn clone(&self) -> StreamOptionChainResp
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 StreamOptionChainResp
impl Debug for StreamOptionChainResp
Source§impl<'de> Deserialize<'de> for StreamOptionChainResp
impl<'de> Deserialize<'de> for StreamOptionChainResp
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 StreamOptionChainResp
impl RefUnwindSafe for StreamOptionChainResp
impl Send for StreamOptionChainResp
impl Sync for StreamOptionChainResp
impl Unpin for StreamOptionChainResp
impl UnwindSafe for StreamOptionChainResp
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