pub struct ScheduleEntry {
pub start_date: String,
pub end_date: String,
pub trading_session_type: String,
pub trading_session_status: String,
}Expand description
One session of the day in a daily schedule.
§Examples
use brokapi_bcs_protocol::http::models::ScheduleEntry;
let e: ScheduleEntry = serde_json::from_str(
r#"{"startDate":"10:00:00","endDate":"18:50:00","tradingSessionType":"Торговый период","tradingSessionStatus":"OPEN"}"#,
)?;
assert_eq!(e.trading_session_status, "OPEN");Fields§
§start_date: StringStart of the session as a time of day, HH:MM:SS. Despite the name it is not a date. The time zone is not stated in the broker docs (not verified against the live API).
end_date: StringEnd of the session as a time of day, HH:MM:SS. The time zone is not stated in the broker docs.
trading_session_type: StringName of the session, in Russian. The docs list: technical break of QUIK, opening auction, non-working time or day off or holiday, evening session, trading period, closing auction.
trading_session_status: StringOPEN or CLOSE.
Trait Implementations§
Source§impl Clone for ScheduleEntry
impl Clone for ScheduleEntry
Source§fn clone(&self) -> ScheduleEntry
fn clone(&self) -> ScheduleEntry
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 ScheduleEntry
impl Debug for ScheduleEntry
Source§impl<'de> Deserialize<'de> for ScheduleEntry
impl<'de> Deserialize<'de> for ScheduleEntry
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 ScheduleEntry
impl RefUnwindSafe for ScheduleEntry
impl Send for ScheduleEntry
impl Sync for ScheduleEntry
impl Unpin for ScheduleEntry
impl UnsafeUnpin for ScheduleEntry
impl UnwindSafe for ScheduleEntry
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