Skip to main content

try_into_schema_graph

Function try_into_schema_graph 

Source
pub fn try_into_schema_graph<T>() -> Result<SchemaGraph, SchemaError>
where T: IntoSchema + ?Sized,
Expand description

Build a self-contained graph for T and run well-formedness validation on the result. Returns the first reported SchemaError if the graph is malformed.