[][src]Function odata_client_codegen::generate_module

pub fn generate_module(
    metadata_xml: &str,
    service_url: String,
    construct_config: ConstructConfig,
    entity_model_filter: Option<&mut dyn EntityModelFilter>
) -> Result<TokenStream, Error>

Generate OData client token stream from XML string.

construct_config specifies workarounds to overcome inconsistencies in a provided entity model document. If none is required, pass in ConstructConfig::default().

entity_model_filter optionally specifies filters for items in the entity model document for which to generate code. See EntityModelFilter for more info.