文件名称:opg:Rust OpenAPI 3.0文档生成器
文件大小:44KB
文件格式:ZIP
更新时间:2024-06-13 11:58:35
rust swagger openapi3 Rust
opg Rust OpenAPI 3.0文档生成器 例子: 或查看更多 use opg :: * ; use serde :: {Serialize, Deserialize}; #[derive(Serialize, Deserialize, OpgModel)] #[serde(rename_all = "camelCase" )] #[opg( "Simple enum" )] enum SimpleEnum { Test, Another, Yay, } #[derive(Serialize, Deserialize, OpgModel)] #[opg( "newtype string" , format = "id" , example = "abcd0001" )] struct NewType ( String ); #[derive(Seria
【文件预览】:
opg-master
----Cargo.toml(58B)
----.github()
--------workflows()
----LICENSE(11KB)
----opg()
--------Cargo.toml(741B)
--------src()
--------LICENSE(10B)
--------README.md(12B)
--------crates-io.md(12B)
----README.md(11KB)
----test_suite()
--------Cargo.toml(342B)
--------tests()
----opg_derive()
--------Cargo.toml(628B)
--------src()
--------LICENSE(10B)
--------README.md(12B)
--------crates-io.md(12B)
----.gitignore(25B)