#[non_exhaustive]pub struct StatusUpdate {Show 13 fields
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,
pub ts: NumberString,
pub extra: ExtraFields,
}Expand description
Public status channel row.
OKX docs: https://www.okx.com/docs-v5/en/#status-websocket-status-channel
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 maintenance event.
state: StringCurrent state of the event.
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 more information about the event.
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.
ts: NumberStringPush time due to change event (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for StatusUpdate
impl Clone for StatusUpdate
Source§fn clone(&self) -> StatusUpdate
fn clone(&self) -> StatusUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more