Skip to main content

Module bool_or_int

Module bool_or_int 

Source
Expand description

Serde helper that accepts readOnly as either a bool or 0/1 integer.

Bybit returns readOnly as a bool on /v5/user/list-sub-apikeys and as an integer on /v5/user/query-api and the two update endpoints. Deserializing through this module keeps the Rust field a plain bool across all DTOs.

Functionsยง

deserialize
serialize