MCPcopy Create free account
hub / github.com/docker/model-test / CartItem

Struct CartItem

models/chat.go:62–67  ·  view source on GitHub ↗

CartItem represents an item in the shopping cart

Source from the content-addressed store, hash-verified

60
61// CartItem represents an item in the shopping cart
62type CartItem struct {
63 ProductName string `json:"product_name"`
64 Quantity int `json:"quantity"`
65 Price float64 `json:"price"`
66 Subtotal float64 `json:"subtotal"`
67}
68
69// ProductFilter represents search parameters for products
70type ProductFilter struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected