Skip to main content

serialize

Function serialize 

Source
pub fn serialize<S>(
    value: &Option<f64>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serializes an Option<f64> as a string.

Converts the Option<f64> to a string, using an empty string for None. This aligns with Bybit’s API expectations for optional fields.