OpenAPI Generator

OpenAPI Generator

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

Config Options for rust

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

IMPORT MAPPING

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

INSTANTIATION TYPES

Type/AliasInstantiated By

LANGUAGE PRIMITIVES

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

RESERVED WORDS

  • struct
  • mod
  • use
  • extern
  • do
  • type
  • while
  • impl
  • ref
  • continue
  • else
  • loop
  • trait
  • let
  • priv
  • if
  • static
  • in
  • sizeof
  • enum
  • as
  • final
  • true
  • become
  • virtual
  • const
  • fn
  • for
  • box
  • pure
  • unsafe
  • mut
  • yield
  • offsetof
  • where
  • override
  • typeof
  • macro
  • move
  • proc
  • alignof
  • break
  • false
  • match
  • abstract
  • crate
  • super
  • self
  • pub
  • return
  • unsized
Last updated on 1/9/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))