openmeter / api /convert.go
Leon4gr45's picture
Upload folder using huggingface_hub
048b1e8 verified
Raw
History Blame Contribute Delete
598 Bytes
//go:generate go tool github.com/jmattheis/goverter/cmd/goverter gen ./
package api
// This file contains the conversion functions for the API types.
// This can be used to convert between similar API types, as the oapi-codegen generates
// different types for the same Go struct.
// goverter:variables
// goverter:skipCopySameType
// goverter:output:file ./convert.gen.go
// goverter:enum no
var (
FromBillingDiscountPercentageToDiscountPercentage func(BillingDiscountPercentage) DiscountPercentage
FromBillingDiscountUsageToDiscountUsage func(BillingDiscountUsage) DiscountUsage
)