Skip to main content

default_object

Function default_object 

Source
pub fn default_object<T: DeserializeOwned>() -> T
Expand description

Deserializes an empty (json) object to a type T. Panics if this is not possible.