Crate ploidy_codegen_rust

Crate ploidy_codegen_rust 

Source

Structs§

CargoMetadata
Cargo metadata for the generated crate.
CodegenCargoManifest
CodegenClientModule
Generates the client/mod.rs source file.
CodegenConfig
Configuration for Rust code generation, read from [package.metadata.ploidy] in the Cargo.toml of the generated crate.
CodegenErrorModule
CodegenGraph
Decorates an IrGraph with Rust-specific information.
CodegenIdent
A string that’s statically guaranteed to be valid for any CodegenIdentUsage.
CodegenIdentRef
A string slice that’s guaranteed to be valid for any CodegenIdentUsage.
CodegenIdentScope
A scope for generating unique, valid Rust identifiers.
CodegenLibrary
CodegenMethod
CodegenOperation
Generates a single client method for an API operation.
CodegenPrimitive
CodegenResource
Generates a feature-gated impl Client block for a resource, with all its operations.
CodegenSchemaType
Generates a module for a named schema type.
CodegenStructFieldName
CodegenTypeNameSortKey
A comparator that sorts type names lexicographically.
CodegenTypePathSegment
CodegenTypesModule
Generates the types/mod.rs module.
CodegenUntaggedVariantName

Enums§

CodegenIdentUsage
CodegenTypeName
DateTimeFormat
The format to use for date-time types.

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