Class RustFileGenerator

Abstract file generator which each file generator much implement.

Hierarchy

Implements

Constructors

  • Parameters

    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns RustFileGenerator

Properties

languageName: string
options: RustOptions
defaultOptions: RustOptions = ...

Methods

  • Parameters

    • model: MetaModel
    • options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns ConstrainedMetaModel

  • Parameters

    • input: any
    • completeModelOptions: Partial<RustRenderCompleteModelOptions>
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<OutputModel[]>

  • Generates a compile-able package (crate),

    Parameters

    • input: any
    • outputDirectory: string

      where you want the models generated to

    • options: RustRenderCompleteModelOptions
    • ensureFilesWritten: boolean = false

      verify that the files is completely written before returning, this can happen if the file system is swamped with write requests.

    Returns Promise<OutputModel[]>

  • Parameters

    • model: ConstrainedEnumModel
    • inputModel: InputMetaModel
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<RenderOutput>

  • Parameters

    • model: ConstrainedMetaModel
    • inputModel: InputMetaModel
    • completeModelOptions: Partial<RustRenderCompleteModelOptions>
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<RenderOutput>

  • Parameters

    • model: ConstrainedMetaModel
    • inputModel: InputMetaModel
    • completeModelOptions: Partial<RustRenderCompleteModelOptions>
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<RenderOutput>

  • Parameters

    • model: ConstrainedObjectModel
    • inputModel: InputMetaModel
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<RenderOutput>

  • Parameters

    • model: ConstrainedTupleModel
    • inputModel: InputMetaModel
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<RenderOutput>

  • Parameters

    • model: ConstrainedUnionModel
    • inputModel: InputMetaModel
    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns Promise<RenderOutput>

  • Returns the Rust options by merging custom options with default ones.

    Parameters

    • Optional options: {
          package?: { packageName?: string | undefined; packageVersion?: string | undefined; authors?: (string | undefined)[] | undefined; homepage?: string | undefined; repository?: string | undefined; license?: string | undefined; description?: string | undefined; edition?: string | undefined; packageFeatures?: (RustPackageFeatures |...;
          supportFiles?: boolean;
      }
      • Optional package?: { packageName?: string | undefined; packageVersion?: string | undefined; authors?: (string | undefined)[] | undefined; homepage?: string | undefined; repository?: string | undefined; license?: string | undefined; description?: string | undefined; edition?: string | undefined; packageFeatures?: (RustPackageFeatures |...
      • Optional supportFiles?: boolean

    Returns RustRenderCompleteModelOptions

  • Returns the Rust options by merging custom options with default ones.

    Parameters

    • Optional options: {
          constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; };
          defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....;
          dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; });
          indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; };
          presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[];
          processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...;
          typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; };
      }
      • Optional constraints?: { enumKey?: EnumKeyConstraint<RustOptions> | undefined; enumValue?: EnumValueConstraint<RustOptions> | undefined; modelName?: ModelNameConstraint<...> | undefined; propertyKey?: PropertyKeyConstraint<...> | undefined; constant?: ConstantConstraint<...> | undefined; }
      • Optional defaultPreset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....
      • Optional dependencyManager?: (() => AbstractDependencyManager) | ({ dependencies?: (string | undefined)[] | undefined; addDependency?: ((dependency: string) => void) | undefined; })

        This dependency manager type serves two functions.

        1. It can be used to provide a factory for generate functions
        2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

        This depends on context and where it's used.

      • Optional indentation?: { type?: IndentationTypes | undefined; size?: number | undefined; }
      • Optional presets?: (undefined | ({ struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<.....) | ({ preset?: { struct?: { field?: ((args: PresetArgs<StructRenderer, any, ConstrainedObjectModel> & StructFieldArgs) => string | Promise<...>) | undefined; fieldMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string | Promise<...>) | undefined; structMacro?: ((args: PresetArgs<...> & StructFieldArgs) => string |...))[]
      • Optional processorOptions?: { asyncapi?: { source?: string | undefined; applyTraits?: boolean | undefined; parseSchemas?: boolean | undefined; validateOptions?: { allowedSeverity?: { error?: boolean | undefined; warning?: boolean | undefined; info?: boolean | undefined; hint?: boolean | undefined; } | undefined; __unstable?: { ...; } | undefin...
      • Optional typeMapping?: { Object?: TypeMappingFunction<ConstrainedObjectModel, RustOptions, RustDependencyManager> | undefined; ... 10 more ...; Dictionary?: TypeMappingFunction<...> | undefined; }

    Returns RustOptions

Generated using TypeDoc