Documentation
¶
Overview ¶
Package rust implements a native Rust code generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateStorage ¶
func GenerateStorage(ctx context.Context, outdir string, storageModel *api.API, storageConfig *parser.ModelConfig, controlModel *api.API, controlConfig *parser.ModelConfig) error
GenerateStorage generates Rust code for the storage service.
Types ¶
type FormattedResource ¶ added in v0.12.0
type FormattedResource struct {
// The Rust format string, e.g., "projects/{}/secrets/{}"
FormatString string
// The variables used in the format string.
FormatArgs []string
}
FormattedResource contain the format string and the format arguments of a resource name.
Click to show internal directories.
Click to hide internal directories.