Skip to main content

Module masked_secret

Module masked_secret 

Source
Expand description

Serde helper that treats the masked secret literal ("******") and empty strings as None, preserving real values as Some.

Bybit responses never expose a usable secret: list-sub-apikeys returns "******", while the update endpoints return "". Surfacing Option<String> keeps callers from accidentally treating the sentinel as a real credential.

Functionsยง

deserialize
serialize