pub struct TradingStatusResponse {
pub trading_session_type_id: i32,
pub trading_session_type: String,
pub trading_session_status: String,
pub next_session_date: DateTime<Utc>,
}Expand description
The trading session status of a board.
§Examples
use brokapi_bcs_protocol::http::models::TradingStatusResponse;
let s: TradingStatusResponse = serde_json::from_str(
r#"{"tradingSessionTypeId":1,"tradingSessionType":"MAIN","tradingSessionStatus":"OPEN",
"nextSessionDate":"2026-10-20T07:00:00.000Z"}"#,
)?;
assert_eq!(s.trading_session_status, "OPEN");Fields§
§trading_session_type_id: i32Id of the current session.
trading_session_type: StringName of the current session.
trading_session_status: StringOPEN or CLOSE.
next_session_date: DateTime<Utc>Date and time (UTC) of the next change of the status, as the broker docs describe it.
Trait Implementations§
Source§impl Clone for TradingStatusResponse
impl Clone for TradingStatusResponse
Source§fn clone(&self) -> TradingStatusResponse
fn clone(&self) -> TradingStatusResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TradingStatusResponse
impl Debug for TradingStatusResponse
Source§impl<'de> Deserialize<'de> for TradingStatusResponse
impl<'de> Deserialize<'de> for TradingStatusResponse
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 TradingStatusResponse
impl RefUnwindSafe for TradingStatusResponse
impl Send for TradingStatusResponse
impl Sync for TradingStatusResponse
impl Unpin for TradingStatusResponse
impl UnsafeUnpin for TradingStatusResponse
impl UnwindSafe for TradingStatusResponse
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