pub fn to_value<T: ?Sized + Serialize>(x: &T) -> Result<Value>
parse
yaml
Convert a T into a YAML value