to_string

Function to_string 

Source
pub fn to_string<T: Serialize>(value: &T) -> Result<String>
Expand description

Serializes a given value into a CQCode formatted string.

§Arguments

  • value - A reference to the value that implements the Serialize trait.

§Returns

  • Result<String> - A result containing the serialized string on success, or an error if serialization fails.