Skip to main content

to_string

Function to_string 

Source
pub fn to_string<T: Serialize>(
    document: &T,
    maximum_bytes: usize,
) -> Result<String, PhoneXmlError>
Expand description

Serializes a known Serde model and rejects an oversized result.