Function bool_to_string

Source
pub(super) fn bool_to_string(value: bool) -> &'static str
Expand description

Converts a bool value to a string slice ("true" or "false").

Useful for generating query parameters.

§Arguments

  • value – Boolean value to stringify.

§Returns

  • "true" or "false" as &'static str.