Skip to main content

ref_documentation

Function ref_documentation 

Source
pub fn ref_documentation(
    item: &ItemStruct,
    import_location: &Path,
    doc_rec: DocRec,
) -> Result<TokenStream>
Expand description

Generates a TypeableRow impl for the FooRef<'_> struct produced by deep_ref.

The schema is identical to the owned type’s schema — field names, types, nullability, and doc-strings are all sourced from the original struct. Only the implementor changes: FooRef<'_> instead of Foo.