#[non_exhaustive]pub struct StatusItem {
pub title: String,
pub state: String,
pub begin: NumberString,
pub end: NumberString,
pub pre_open_begin: NumberString,
pub href: String,
pub service_type: String,
pub system: String,
pub sche_desc: String,
pub maint_type: String,
pub env: String,
}Expand description
A single system-maintenance record returned by
get_status.
OKX docs: https://www.okx.com/docs-v5/en/#rest-api-status-get-system-status
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: StringTitle of the system maintenance event.
state: StringCurrent maintenance state.
Documented values: scheduled, ongoing, pre_open, completed, canceled.
begin: NumberStringMaintenance start time (Unix milliseconds).
end: NumberStringMaintenance end time (Unix milliseconds).
Expected end time before completed; actual end time after completed.
pre_open_begin: NumberStringPre-open phase start time (Unix milliseconds).
Empty string when the event has no pre-open phase.
href: StringURL for system maintenance details. Empty string when not provided.
service_type: StringAffected service type.
Documented values: 0 WebSocket; 5 Trading service; 6 Block trading;
7 Trading bot; 8 Trading service (in batches of accounts);
9 Trading service (in batches of products); 10 Spread trading;
11 Copy trading; 99 Others.
system: StringSystem affected by the maintenance. Documented values: unified Trading account.
sche_desc: StringRescheduled description.
maint_type: StringMaintenance type.
Documented values: 1 Scheduled maintenance; 2 Unscheduled maintenance;
3 System disruption.
env: StringEnvironment: 1 Production Trading; 2 Demo Trading.
Trait Implementations§
Source§impl Clone for StatusItem
impl Clone for StatusItem
Source§fn clone(&self) -> StatusItem
fn clone(&self) -> StatusItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more