Structs§
- Cargo
Metadata - Cargo metadata for the generated crate.
- Codegen
Cargo Manifest - Codegen
Client Module - Generates the
client/mod.rssource file. - Codegen
Config - Configuration for Rust code generation, read from
[package.metadata.ploidy]in theCargo.tomlof the generated crate. - Codegen
Error Module - Codegen
Graph - Decorates an
IrGraphwith Rust-specific information. - Codegen
Ident - A string that’s statically guaranteed to be valid for any
CodegenIdentUsage. - Codegen
Ident Ref - A string slice that’s guaranteed to be valid for any
CodegenIdentUsage. - Codegen
Ident Scope - A scope for generating unique, valid Rust identifiers.
- Codegen
Library - Codegen
Method - Codegen
Module Name - A module name derived from a
CodegenTypeName. - Codegen
Operation - Generates a single client method for an API operation.
- Codegen
Primitive - Codegen
Resource - Generates an
impl Clientblock for a feature-gated resource, with all its operations and inline types. - Codegen
Schema Type - Generates a module for a named schema type.
- Codegen
Struct Field Name - Codegen
Type Name Sort Key - A sort key for deterministic ordering of
CodegenTypeNames. - Codegen
Type Path Segment - Codegen
Types Module - Generates the
types/mod.rsmodule. - Codegen
Untagged Variant Name
Enums§
- Cargo
Feature - A Cargo feature for conditionally compiling generated code.
- CfgFeature
- Generates a
#[cfg(...)]attribute for conditional compilation. - Codegen
Ident Usage - A context-aware wrapper for emitting a
CodegenIdentRefas a Rust identifier. - Codegen
Inlines - Generates an inline
mod types, with definitions for all the inline types that are reachable from a resource or schema type. - Codegen
Type Name - A name for a schema or an inline type, used in generated Rust code.
- Date
Time Format - The format to use for
date-timetypes.
Functions§
- doc_
attrs - Generates one or more
#[doc]attributes for a schema description, wrapping at 80 characters for readability. - write_
client_ to_ disk - write_
types_ to_ disk