OpenAPI Generator

OpenAPI Generator

  • Get Started
  • Generators
  • Roadmap
  • Team
  • FAQ
  • Blog

Config Options for rust

OptionDescriptionValuesDefault
hideGenerationTimestampHides the generation timestamp when files are generated.true
librarylibrary template (sub-template) to use.
hyper
HTTP client: Hyper.
reqwest
HTTP client: Reqwest.
hyper
packageNameRust package name (convention: lowercase).openapi
packageVersionRust package version.1.0.0

IMPORT MAPPING

Type/AliasImports
Arrayjava.util.List
ArrayListjava.util.ArrayList
BigDecimaljava.math.BigDecimal
Datejava.util.Date
DateTimeorg.joda.time.*
Filejava.io.File
HashMapjava.util.HashMap
Listjava.util.*
LocalDateorg.joda.time.*
LocalDateTimeorg.joda.time.*
LocalTimeorg.joda.time.*
Mapjava.util.Map
Setjava.util.*
Timestampjava.sql.Timestamp
URIjava.net.URI
UUIDjava.util.UUID

INSTANTIATION TYPES

Type/AliasInstantiated By

LANGUAGE PRIMITIVES

  • File
  • String
  • Vec<u8>
  • bool
  • char
  • f32
  • f64
  • i16
  • i32
  • i64
  • i8
  • u16
  • u32
  • u64
  • u8

RESERVED WORDS

  • abstract
  • alignof
  • as
  • become
  • box
  • break
  • const
  • continue
  • crate
  • do
  • else
  • enum
  • extern
  • false
  • final
  • fn
  • for
  • if
  • impl
  • in
  • let
  • loop
  • macro
  • match
  • mod
  • move
  • mut
  • offsetof
  • override
  • priv
  • proc
  • pub
  • pure
  • ref
  • return
  • self
  • sizeof
  • static
  • struct
  • super
  • trait
  • true
  • type
  • typeof
  • unsafe
  • unsized
  • use
  • virtual
  • where
  • while
  • yield
Last updated on 1/20/2020
  • IMPORT MAPPING
  • INSTANTIATION TYPES
  • LANGUAGE PRIMITIVES
  • RESERVED WORDS
OpenAPI Generator
Docs
Customizing GeneratorsWorkflow Integrations
Community
User ShowcaseStack OverflowChat RoomTwitter
More
BlogGitHub RepoStar
Copyright © 2020 OpenAPI-Generator Contributors (https://openapi-generator.tech). (Both "OpenAPI Tools" (https://OpenAPITools.org) and "OpenAPI Generator" are not affiliated with OpenAPI Initiative (OAI))