Skip to main content

Crate ploidy_codegen_rust

Crate ploidy_codegen_rust 

Source

Structs§

AsFeatureName
Formats a uniquified resource name as a Cargo feature name.
CargoManifest
A Cargo.toml manifest.
CargoManifestDiff
A diff of changes to apply to a CargoManifest.
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
A CookedGraph decorated with Rust-specific information.
CodegenLibrary
CodegenMethod
CodegenOperation
Generates a single client method for an API operation.
CodegenPrimitive
CodegenQueryParameters
Generates a query parameter struct for an API operation.
CodegenResource
Generates an impl Client block for a feature-gated resource, with all its operations and inline types.
CodegenSchemaType
Generates a module for a named schema type.
CodegenTypesModule
Generates the types/mod.rs module.
DependencyDetail
FeatureDependencies
A set of feature dependencies to merge into a [features] entry.
Package
A view of the package section of a Cargo manifest.
SpannedError
An error with source location information for diagnostics.
UniqueIdent
An identifier that’s unique within its UniqueIdents scope.
UniqueIdents
A scope for generating unique, valid Rust identifiers.

Enums§

CargoManifestError
CfgFeature
Generates a #[cfg(...)] attribute for conditional compilation.
CodegenIdentUsage
Emits a UniqueIdent as an idiomatic Rust identifier.
DateTimeFormat
The format to use for date-time types.
Dependency
An entry in the dependencies section of a Cargo manifest.
IdentMapping
An item with a uniquified Rust identifier in a CodegenGraph.
PackageError
ResourceGroup
A key used to group a resource’s operations into modules and derive Cargo features for resource operations and types.
RustEdition
The Rust edition that a package is compiled with.

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