openapi-generator/docs/generators/rust.md
Jim Schubert 644f720db8
[docs] Sorted doc outputs and clean up duplicated CliOptions (#5046)
* [config-help] Sort all outputs

* Remove old/stale generator docs (these have been renamed previously)

* Sort config doc outputs, making it easier to find relevant info

* Fixes cliOptions duplicates

Erlang client/proper improperly set the version option as packageName
(causing duplicate for packageName).

The java and swift option removals are because the options are added in
parent classes, resulting in duplication of the options.

* Add --github-nested-index for generating docs/generators/README.md

* 📝 Regenerate generator docs
2020-01-19 20:19:11 -05:00

2.3 KiB

title sidebar_label
Config Options for rust rust
Option Description Values Default
hideGenerationTimestamp Hides the generation timestamp when files are generated. true
library library template (sub-template) to use.
hyper
HTTP client: Hyper.
reqwest
HTTP client: Reqwest.
hyper
packageName Rust package name (convention: lowercase). openapi
packageVersion Rust package version. 1.0.0

IMPORT MAPPING

Type/Alias Imports
Array java.util.List
ArrayList java.util.ArrayList
BigDecimal java.math.BigDecimal
Date java.util.Date
DateTime org.joda.time.*
File java.io.File
HashMap java.util.HashMap
List java.util.*
LocalDate org.joda.time.*
LocalDateTime org.joda.time.*
LocalTime org.joda.time.*
Map java.util.Map
Set java.util.*
Timestamp java.sql.Timestamp
URI java.net.URI
UUID java.util.UUID

INSTANTIATION TYPES

Type/Alias Instantiated 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