pub fn to_raw<T: Serialize, U>(input: T) -> Result<Raw<U>>Expand description
Serializes a value into Ruma’s raw JSON representation.
The input is first converted to a serde_json::Value, then stored as
Raw<U> without deserializing U. Serialization or JSON conversion
failures are returned.