[][src]Function serde_generate::rust::output_with_external_dependencies_and_comments

pub fn output_with_external_dependencies_and_comments(
    out: &mut dyn Write,
    with_serialization: bool,
    registry: &Registry,
    external_definitions: &ExternalDefinitions,
    comments: &DocComments
) -> Result<(), Box<dyn Error>>

Same as output but allow some type definitions to be provided by external modules, and doc comments to be attached to named components.

  • A use statement will be generated for every external definition provided by a non-empty module name.
  • The empty module name is allowed and can be used to signal that custom definitions (including for Map and Bytes) will be added manually at the end of the generated file.