pydantic_to_value

Function pydantic_to_value 

Source
pub fn pydantic_to_value<'py>(
    obj: &Bound<'py, PyAny>,
) -> Result<Value, TypeError>
Expand description

Helper for converting a pydantic model to a pyobject (pydict) we are keeping the type as Bound<’py, PyAny> so that is is compatible with pyobject_to_json