Skip to main content

to_raw

Function to_raw 

Source
pub fn to_raw<T: Serialize, U>(input: T) -> Result<Raw<U>>
Expand description

Perform a round-trip through serde_json starting with a native type T and ending with a Ruma Raw<U> which is usually just T.