generated

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Code generated by Ridu. DO NOT EDIT.

Index

Constants

View Source
const CardBlockType = "card"

CardBlockType is the immutable stored discriminator.

View Source
const NoteBlockType = "note"

NoteBlockType is the immutable stored discriminator.

Variables

View Source
var PrimitiveProductsCollectionAllLocales = core.NewTypedAllLocalesCollection[PrimitiveProductAllLocales]("primitive-products")

PrimitiveProductsCollectionAllLocales reads all translations with optional population and projection.

Functions

This section is empty.

Types

type BlockOptional

type BlockOptional[T any] struct{ Value *T }

BlockOptional preserves omitted, explicit null, and concrete nullable block children. A nil outer pointer is absent; a nil Value is explicit JSON null.

func (*BlockOptional[T]) Get

func (value *BlockOptional[T]) Get() (T, bool)

Get returns the concrete value, or the zero value and false for omission or null. Inspect the outer pointer and Value only when omission and null must be distinguished.

func (BlockOptional[T]) MarshalJSON

func (value BlockOptional[T]) MarshalJSON() ([]byte, error)

func (*BlockOptional[T]) UnmarshalJSON

func (value *BlockOptional[T]) UnmarshalJSON(data []byte) error

type Card added in v0.15.0

type Card struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
	// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}

Card is a generated block. Use *Card in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with CardInput. To edit, retain the read list and modify its CardUpdate pointers.

func (*Card) BlockKey added in v0.15.0

func (value *Card) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*Card) BlockType added in v0.15.0

func (*Card) BlockType() string

BlockType returns the immutable stored discriminator.

func (Card) MarshalJSON added in v0.15.0

func (value Card) MarshalJSON() ([]byte, error)

func (*Card) UnmarshalJSON added in v0.15.0

func (value *Card) UnmarshalJSON(data []byte) error

type CardAllLocales added in v0.15.0

type CardAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
	// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}

CardAllLocales is a generated block. Use *CardAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*CardAllLocales) BlockKey added in v0.15.0

func (value *CardAllLocales) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*CardAllLocales) BlockType added in v0.15.0

func (*CardAllLocales) BlockType() string

BlockType returns the immutable stored discriminator.

func (CardAllLocales) MarshalJSON added in v0.15.0

func (value CardAllLocales) MarshalJSON() ([]byte, error)

func (*CardAllLocales) UnmarshalJSON added in v0.15.0

func (value *CardAllLocales) UnmarshalJSON(data []byte) error

type CardAllLocalesValue added in v0.15.0

type CardAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
	// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}

CardAllLocalesValue is a generated block. Use *CardAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*CardAllLocalesValue) BlockKey added in v0.15.0

func (value *CardAllLocalesValue) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*CardAllLocalesValue) BlockType added in v0.15.0

func (*CardAllLocalesValue) BlockType() string

BlockType returns the immutable stored discriminator.

func (CardAllLocalesValue) MarshalJSON added in v0.15.0

func (value CardAllLocalesValue) MarshalJSON() ([]byte, error)

func (*CardAllLocalesValue) UnmarshalJSON added in v0.15.0

func (value *CardAllLocalesValue) UnmarshalJSON(data []byte) error

type CardInput added in v0.15.0

type CardInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	BlockName *core.Input[string] `json:"blockName,omitempty"`
}

CardInput is a generated block. Use *CardInput in block lists and type switches. Input supplies a new occurrence's required fields. An empty Key requests a server-assigned key. Read this block as Card; edit an existing occurrence with CardUpdate.

func (*CardInput) BlockKey added in v0.15.0

func (value *CardInput) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*CardInput) BlockType added in v0.15.0

func (*CardInput) BlockType() string

BlockType returns the immutable stored discriminator.

func (CardInput) MarshalJSON added in v0.15.0

func (value CardInput) MarshalJSON() ([]byte, error)

func (*CardInput) UnmarshalJSON added in v0.15.0

func (value *CardInput) UnmarshalJSON(data []byte) error

type CardUpdate added in v0.15.0

type CardUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	BlockName *core.Input[string] `json:"blockName,omitempty"`
}

CardUpdate is a generated block. Use *CardUpdate in block lists and type switches. Update retains an existing occurrence by Key. Omitted children remain unchanged. The engine verifies that the key belongs to an existing occurrence of this variant. Start with the read list's Retain method; use CardInput for additions.

func (*CardUpdate) BlockKey added in v0.15.0

func (value *CardUpdate) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*CardUpdate) BlockType added in v0.15.0

func (*CardUpdate) BlockType() string

BlockType returns the immutable stored discriminator.

func (CardUpdate) MarshalJSON added in v0.15.0

func (value CardUpdate) MarshalJSON() ([]byte, error)

func (*CardUpdate) UnmarshalJSON added in v0.15.0

func (value *CardUpdate) UnmarshalJSON(data []byte) error

type ContractError

type ContractError struct {
	Operation     string
	Container     string
	Path          string
	Discriminator string
	Reason        string
	Err           error
}

ContractError identifies an encode, decode or retain failure without including the document or field payload. Path is relative to Container and includes nested field names and array indexes. Use errors.As to inspect it; Unwrap preserves the underlying JSON or plugin error.

func (*ContractError) Error

func (err *ContractError) Error() string

func (*ContractError) Unwrap

func (err *ContractError) Unwrap() error

type Note added in v0.15.0

type Note struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
	// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}

Note is a generated block. Use *Note in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with NoteInput. To edit, retain the read list and modify its NoteUpdate pointers.

func (*Note) BlockKey added in v0.15.0

func (value *Note) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*Note) BlockType added in v0.15.0

func (*Note) BlockType() string

BlockType returns the immutable stored discriminator.

func (Note) MarshalJSON added in v0.15.0

func (value Note) MarshalJSON() ([]byte, error)

func (*Note) UnmarshalJSON added in v0.15.0

func (value *Note) UnmarshalJSON(data []byte) error

type NoteAllLocales added in v0.15.0

type NoteAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
	// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}

NoteAllLocales is a generated block. Use *NoteAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*NoteAllLocales) BlockKey added in v0.15.0

func (value *NoteAllLocales) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*NoteAllLocales) BlockType added in v0.15.0

func (*NoteAllLocales) BlockType() string

BlockType returns the immutable stored discriminator.

func (NoteAllLocales) MarshalJSON added in v0.15.0

func (value NoteAllLocales) MarshalJSON() ([]byte, error)

func (*NoteAllLocales) UnmarshalJSON added in v0.15.0

func (value *NoteAllLocales) UnmarshalJSON(data []byte) error

type NoteAllLocalesValue added in v0.15.0

type NoteAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
	// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}

NoteAllLocalesValue is a generated block. Use *NoteAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*NoteAllLocalesValue) BlockKey added in v0.15.0

func (value *NoteAllLocalesValue) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*NoteAllLocalesValue) BlockType added in v0.15.0

func (*NoteAllLocalesValue) BlockType() string

BlockType returns the immutable stored discriminator.

func (NoteAllLocalesValue) MarshalJSON added in v0.15.0

func (value NoteAllLocalesValue) MarshalJSON() ([]byte, error)

func (*NoteAllLocalesValue) UnmarshalJSON added in v0.15.0

func (value *NoteAllLocalesValue) UnmarshalJSON(data []byte) error

type NoteInput added in v0.15.0

type NoteInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	BlockName *core.Input[string] `json:"blockName,omitempty"`
}

NoteInput is a generated block. Use *NoteInput in block lists and type switches. Input supplies a new occurrence's required fields. An empty Key requests a server-assigned key. Read this block as Note; edit an existing occurrence with NoteUpdate.

func (*NoteInput) BlockKey added in v0.15.0

func (value *NoteInput) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*NoteInput) BlockType added in v0.15.0

func (*NoteInput) BlockType() string

BlockType returns the immutable stored discriminator.

func (NoteInput) MarshalJSON added in v0.15.0

func (value NoteInput) MarshalJSON() ([]byte, error)

func (*NoteInput) UnmarshalJSON added in v0.15.0

func (value *NoteInput) UnmarshalJSON(data []byte) error

type NoteUpdate added in v0.15.0

type NoteUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	BlockName *core.Input[string] `json:"blockName,omitempty"`
}

NoteUpdate is a generated block. Use *NoteUpdate in block lists and type switches. Update retains an existing occurrence by Key. Omitted children remain unchanged. The engine verifies that the key belongs to an existing occurrence of this variant. Start with the read list's Retain method; use NoteInput for additions.

func (*NoteUpdate) BlockKey added in v0.15.0

func (value *NoteUpdate) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*NoteUpdate) BlockType added in v0.15.0

func (*NoteUpdate) BlockType() string

BlockType returns the immutable stored discriminator.

func (NoteUpdate) MarshalJSON added in v0.15.0

func (value NoteUpdate) MarshalJSON() ([]byte, error)

func (*NoteUpdate) UnmarshalJSON added in v0.15.0

func (value *NoteUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProduct

type PrimitiveProduct struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	Status    string `json:"_status"`
	Revision  int    `json:"_revision"`
	// Title may be omitted by access rules or projection.
	Title *string `json:"title,omitempty"`
	// SellingPoints may be omitted by access rules or projection.
	SellingPoints []string `json:"sellingPoints,omitzero"`
	// AvailableSizes may be omitted by access rules or projection.
	AvailableSizes []float64 `json:"availableSizes,omitzero"`
	// LocalizedPoints may be omitted by access rules or projection.
	LocalizedPoints []string `json:"localizedPoints,omitzero"`
	// LocalizedSizes may be omitted by access rules or projection.
	LocalizedSizes []float64 `json:"localizedSizes,omitzero"`
	// Details may be omitted by access rules or projection.
	Details *struct {
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"details,omitempty"`
	// Variants may be omitted by access rules or projection.
	Variants []struct {
		Key string `json:"_key"`
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"variants,omitempty"`
	// Content may be omitted by access rules or projection.
	Content *PrimitiveProductsContent `json:"content,omitempty"`
	// Body may be omitted by access rules or projection.
	Body *richtext.Document[PrimitiveProductsBodyBlocksBlockPayload] `json:"body,omitempty"`
	// LocalizedBody may be omitted by access rules or projection.
	LocalizedBody *richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockPayload] `json:"localizedBody,omitempty"`
}

PrimitiveProduct is a single-locale read. Authored fields can be omitted by access rules or projection.

func (*PrimitiveProduct) UnmarshalJSON

func (value *PrimitiveProduct) UnmarshalJSON(data []byte) error

type PrimitiveProductAllLocales

type PrimitiveProductAllLocales struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	Status    string `json:"_status"`
	Revision  int    `json:"_revision"`
	// Title may be omitted by access rules or projection.
	Title *string `json:"title,omitempty"`
	// SellingPoints may be omitted by access rules or projection.
	SellingPoints []string `json:"sellingPoints,omitzero"`
	// AvailableSizes may be omitted by access rules or projection.
	AvailableSizes []float64 `json:"availableSizes,omitzero"`
	// LocalizedPoints may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedPoints *map[string][]string `json:"localizedPoints,omitzero"`
	// LocalizedSizes may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedSizes *map[string][]float64 `json:"localizedSizes,omitzero"`
	// Details may be omitted by access rules or projection.
	Details *struct {
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"details,omitempty"`
	// Variants may be omitted by access rules or projection.
	Variants []struct {
		Key string `json:"_key"`
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"variants,omitempty"`
	// Content may be omitted by access rules or projection.
	Content *PrimitiveProductsContentAllLocales `json:"content,omitempty"`
	// Body may be omitted by access rules or projection.
	Body *richtext.Document[PrimitiveProductsBodyBlocksBlockAllLocalesPayload] `json:"body,omitempty"`
	// LocalizedBody may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedBody *map[string]*richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload] `json:"localizedBody,omitempty"`
}

PrimitiveProductAllLocales is an all-locales read: localized fields contain locale-code maps.

func (*PrimitiveProductAllLocales) UnmarshalJSON

func (value *PrimitiveProductAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductCreate

type PrimitiveProductCreate struct {
	// Title is required when creating this value.
	Title string `json:"title"`
	// SellingPoints requires core.NonNull(value); JSON null is rejected.
	SellingPoints core.NonNullInput[[]string] `json:"sellingPoints"`
	// AvailableSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	AvailableSizes *core.Input[[]float64] `json:"availableSizes,omitempty"`
	// LocalizedPoints: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedPoints *core.Input[[]string] `json:"localizedPoints,omitempty"`
	// LocalizedSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedSizes *core.Input[[]float64] `json:"localizedSizes,omitempty"`
	// Details: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Details *core.Input[struct {
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"details,omitempty"`
	// Variants: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Variants *core.Input[[]struct {
		Key string `json:"_key,omitempty"`
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"variants,omitempty"`
	// Content: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Content *core.Input[PrimitiveProductsContentInput] `json:"content,omitempty"`
	// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Body *core.Input[richtext.Document[PrimitiveProductsBodyBlocksBlockInputPayload]] `json:"body,omitempty"`
	// LocalizedBody: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedBody *core.Input[richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockInputPayload]] `json:"localizedBody,omitempty"`
}

PrimitiveProductCreate supplies a new document. Required values are concrete; defaulted values may be omitted, and nullable values use core.Set or core.Null.

func (*PrimitiveProductCreate) UnmarshalJSON

func (value *PrimitiveProductCreate) UnmarshalJSON(data []byte) error

type PrimitiveProductUpdate

type PrimitiveProductUpdate struct {
	// Title: nil omits the field; a pointer sends a value. Null is not allowed.
	Title *string `json:"title,omitempty"`
	// SellingPoints: nil omits the field; core.SetNonNull sends a value and rejects JSON null.
	SellingPoints *core.NonNullInput[[]string] `json:"sellingPoints,omitempty"`
	// AvailableSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	AvailableSizes *core.Input[[]float64] `json:"availableSizes,omitempty"`
	// LocalizedPoints: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedPoints *core.Input[[]string] `json:"localizedPoints,omitempty"`
	// LocalizedSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedSizes *core.Input[[]float64] `json:"localizedSizes,omitempty"`
	// Details: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Details *core.Input[struct {
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"details,omitempty"`
	// Variants: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Variants *core.Input[[]struct {
		Key string `json:"_key,omitempty"`
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"variants,omitempty"`
	// Content: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	// A supplied list replaces order and membership; use the read list's Retain method to preserve untouched blocks.
	Content *core.Input[PrimitiveProductsContentUpdate] `json:"content,omitempty"`
	// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Body *core.Input[richtext.Document[PrimitiveProductsBodyBlocksBlockUpdatePayload]] `json:"body,omitempty"`
	// LocalizedBody: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedBody *core.Input[richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload]] `json:"localizedBody,omitempty"`
}

PrimitiveProductUpdate edits a document. Nil fields are unchanged; supplied block lists replace order and membership.

func (*PrimitiveProductUpdate) UnmarshalJSON

func (value *PrimitiveProductUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlock

type PrimitiveProductsBodyBlocksBlock []PrimitiveProductsBodyBlocksBlockBlock

PrimitiveProductsBodyBlocksBlock is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsBodyBlocksBlock) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlock) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlock) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsBodyBlocksBlock) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlock) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockAllLocales

type PrimitiveProductsBodyBlocksBlockAllLocales []PrimitiveProductsBodyBlocksBlockAllLocalesBlock

PrimitiveProductsBodyBlocksBlockAllLocales is an ordered list of block pointers. Nil rows are invalid. Localized children contain locale-code maps; use ordinary output types for a single locale.

func (PrimitiveProductsBodyBlocksBlockAllLocales) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlockAllLocales) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockAllLocales) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsBodyBlocksBlockAllLocales) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockAllLocalesBlock

type PrimitiveProductsBodyBlocksBlockAllLocalesBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockAllLocalesPayload

type PrimitiveProductsBodyBlocksBlockAllLocalesPayload struct {
	Value PrimitiveProductsBodyBlocksBlockAllLocalesBlock
}

PrimitiveProductsBodyBlocksBlockAllLocalesPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockAllLocalesPayload) MarshalJSON

func (PrimitiveProductsBodyBlocksBlockAllLocalesPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsBodyBlocksBlockAllLocalesPayload) UnmarshalJSON

type PrimitiveProductsBodyBlocksBlockAllLocalesValue

type PrimitiveProductsBodyBlocksBlockAllLocalesValue []PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock

PrimitiveProductsBodyBlocksBlockAllLocalesValue is an ordered list of block pointers. Nil rows are invalid. This is one locale's value beneath a localized container in an all-locales response. Children are ordinary values; populated target documents still have all-locales shapes.

func (PrimitiveProductsBodyBlocksBlockAllLocalesValue) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockAllLocalesValue) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsBodyBlocksBlockAllLocalesValue) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock

type PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload

type PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload struct {
	Value PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock
}

PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) MarshalJSON

func (PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON

type PrimitiveProductsBodyBlocksBlockBlock

type PrimitiveProductsBodyBlocksBlockBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockInput

type PrimitiveProductsBodyBlocksBlockInput []PrimitiveProductsBodyBlocksBlockInputBlock

PrimitiveProductsBodyBlocksBlockInput is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsBodyBlocksBlockInput) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlockInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockInput) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockInputBlock

type PrimitiveProductsBodyBlocksBlockInputBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockInputBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockInputPayload

type PrimitiveProductsBodyBlocksBlockInputPayload struct {
	Value PrimitiveProductsBodyBlocksBlockInputBlock
}

PrimitiveProductsBodyBlocksBlockInputPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockInputPayload) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockInputPayload) UnmarshalJSON

func (p *PrimitiveProductsBodyBlocksBlockInputPayload) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockPayload

type PrimitiveProductsBodyBlocksBlockPayload struct {
	Value PrimitiveProductsBodyBlocksBlockBlock
}

PrimitiveProductsBodyBlocksBlockPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockPayload) MarshalJSON

func (p PrimitiveProductsBodyBlocksBlockPayload) MarshalJSON() ([]byte, error)

func (PrimitiveProductsBodyBlocksBlockPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsBodyBlocksBlockPayload) UnmarshalJSON

func (p *PrimitiveProductsBodyBlocksBlockPayload) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockUpdate

type PrimitiveProductsBodyBlocksBlockUpdate []PrimitiveProductsBodyBlocksBlockUpdateBlock

PrimitiveProductsBodyBlocksBlockUpdate is an ordered list of block pointers. Nil rows are invalid. Saving this list replaces order and membership: omitted occurrences are removed. Start with a read list's Retain method to preserve untouched blocks.

func (PrimitiveProductsBodyBlocksBlockUpdate) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlockUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockUpdate) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockUpdateBlock

type PrimitiveProductsBodyBlocksBlockUpdateBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockUpdateBlock admits only generated block pointers; decoding returns those same pointer types. Use keyed Update pointers for existing occurrences and Input pointers for new occurrences.

type PrimitiveProductsBodyBlocksBlockUpdatePayload

type PrimitiveProductsBodyBlocksBlockUpdatePayload struct {
	Value PrimitiveProductsBodyBlocksBlockUpdateBlock
}

PrimitiveProductsBodyBlocksBlockUpdatePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockUpdatePayload) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockUpdatePayload) UnmarshalJSON

func (p *PrimitiveProductsBodyBlocksBlockUpdatePayload) UnmarshalJSON(data []byte) error

type PrimitiveProductsContent

type PrimitiveProductsContent []PrimitiveProductsContentBlock

PrimitiveProductsContent is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsContent) MarshalJSON

func (rows PrimitiveProductsContent) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContent) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsContent) UnmarshalJSON

func (rows *PrimitiveProductsContent) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentAllLocales

type PrimitiveProductsContentAllLocales []PrimitiveProductsContentAllLocalesBlock

PrimitiveProductsContentAllLocales is an ordered list of block pointers. Nil rows are invalid. Localized children contain locale-code maps; use ordinary output types for a single locale.

func (PrimitiveProductsContentAllLocales) MarshalJSON

func (rows PrimitiveProductsContentAllLocales) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentAllLocales) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsContentAllLocales) UnmarshalJSON

func (rows *PrimitiveProductsContentAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentAllLocalesBlock

type PrimitiveProductsContentAllLocalesBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentAllLocalesValue

type PrimitiveProductsContentAllLocalesValue []PrimitiveProductsContentAllLocalesValueBlock

PrimitiveProductsContentAllLocalesValue is an ordered list of block pointers. Nil rows are invalid. This is one locale's value beneath a localized container in an all-locales response. Children are ordinary values; populated target documents still have all-locales shapes.

func (PrimitiveProductsContentAllLocalesValue) MarshalJSON

func (rows PrimitiveProductsContentAllLocalesValue) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentAllLocalesValue) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsContentAllLocalesValue) UnmarshalJSON

func (rows *PrimitiveProductsContentAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentAllLocalesValueBlock

type PrimitiveProductsContentAllLocalesValueBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentBlock

type PrimitiveProductsContentBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentInput

type PrimitiveProductsContentInput []PrimitiveProductsContentInputBlock

PrimitiveProductsContentInput is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsContentInput) MarshalJSON

func (rows PrimitiveProductsContentInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentInput) UnmarshalJSON

func (rows *PrimitiveProductsContentInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentInputBlock

type PrimitiveProductsContentInputBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentInputBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentUpdate

type PrimitiveProductsContentUpdate []PrimitiveProductsContentUpdateBlock

PrimitiveProductsContentUpdate is an ordered list of block pointers. Nil rows are invalid. Saving this list replaces order and membership: omitted occurrences are removed. Start with a read list's Retain method to preserve untouched blocks.

func (PrimitiveProductsContentUpdate) MarshalJSON

func (rows PrimitiveProductsContentUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentUpdate) UnmarshalJSON

func (rows *PrimitiveProductsContentUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentUpdateBlock

type PrimitiveProductsContentUpdateBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentUpdateBlock admits only generated block pointers; decoding returns those same pointer types. Use keyed Update pointers for existing occurrences and Input pointers for new occurrences.

type PrimitiveProductsLocalizedBodyBlocksBlock

type PrimitiveProductsLocalizedBodyBlocksBlock []PrimitiveProductsLocalizedBodyBlocksBlockBlock

PrimitiveProductsLocalizedBodyBlocksBlock is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsLocalizedBodyBlocksBlock) MarshalJSON

func (rows PrimitiveProductsLocalizedBodyBlocksBlock) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsLocalizedBodyBlocksBlock) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsLocalizedBodyBlocksBlock) UnmarshalJSON

func (rows *PrimitiveProductsLocalizedBodyBlocksBlock) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocales

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocales []PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock

PrimitiveProductsLocalizedBodyBlocksBlockAllLocales is an ordered list of block pointers. Nil rows are invalid. Localized children contain locale-code maps; use ordinary output types for a single locale.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) MarshalJSON

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue []PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue is an ordered list of block pointers. Nil rows are invalid. This is one locale's value beneath a localized container in an all-locales response. Children are ordinary values; populated target documents still have all-locales shapes.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) MarshalJSON

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockBlock

type PrimitiveProductsLocalizedBodyBlocksBlockBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockInput

type PrimitiveProductsLocalizedBodyBlocksBlockInput []PrimitiveProductsLocalizedBodyBlocksBlockInputBlock

PrimitiveProductsLocalizedBodyBlocksBlockInput is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsLocalizedBodyBlocksBlockInput) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockInput) UnmarshalJSON

func (rows *PrimitiveProductsLocalizedBodyBlocksBlockInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockInputBlock

type PrimitiveProductsLocalizedBodyBlocksBlockInputBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockInputBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockInputPayload

type PrimitiveProductsLocalizedBodyBlocksBlockInputPayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockInputBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockInputPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockPayload

type PrimitiveProductsLocalizedBodyBlocksBlockPayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockPayload) MarshalJSON

func (PrimitiveProductsLocalizedBodyBlocksBlockPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsLocalizedBodyBlocksBlockPayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockUpdate

type PrimitiveProductsLocalizedBodyBlocksBlockUpdate []PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock

PrimitiveProductsLocalizedBodyBlocksBlockUpdate is an ordered list of block pointers. Nil rows are invalid. Saving this list replaces order and membership: omitted occurrences are removed. Start with a read list's Retain method to preserve untouched blocks.

func (PrimitiveProductsLocalizedBodyBlocksBlockUpdate) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockUpdate) UnmarshalJSON

func (rows *PrimitiveProductsLocalizedBodyBlocksBlockUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock

type PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock admits only generated block pointers; decoding returns those same pointer types. Use keyed Update pointers for existing occurrences and Input pointers for new occurrences.

type PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload

type PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) UnmarshalJSON

type Reference

type Reference[T any] struct {
	ID       string
	Document *T
}

Reference preserves canonical IDs and populated target documents.

func (Reference[T]) MarshalJSON

func (value Reference[T]) MarshalJSON() ([]byte, error)

func (*Reference[T]) UnmarshalJSON

func (value *Reference[T]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL