generated

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Code generated by Ridu. DO NOT EDIT.

Index

Constants

View Source
const UnifiedArticlesBodyBlocksBlockCardBlockType = "card"

UnifiedArticlesBodyBlocksBlockCardBlockType is the immutable stored discriminator.

View Source
const UnifiedArticlesContentCardBlockType = "card"

UnifiedArticlesContentCardBlockType is the immutable stored discriminator.

View Source
const UnifiedArticlesContentNoteBlockType = "note"

UnifiedArticlesContentNoteBlockType is the immutable stored discriminator.

Variables

View Source
var UnifiedArticlesCollection = core.NewTypedCollection[UnifiedArticle, UnifiedArticleCreate, UnifiedArticleUpdate]("unified-articles")
View Source
var UnifiedArticlesCollectionAllLocales = core.NewTypedAllLocalesCollection[UnifiedArticleAllLocales]("unified-articles")

UnifiedArticlesCollectionAllLocales reads all translations with optional population and projection.

View Source
var UsersCollection = core.NewTypedCollection[User, UserCreate, UserUpdate]("users")
View Source
var UsersCollectionAllLocales = core.NewTypedAllLocalesCollection[UserAllLocales]("users")

UsersCollectionAllLocales 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 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 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

type UnifiedArticle

type UnifiedArticle struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	// Title may be omitted by access rules or projection.
	Title *string `json:"title,omitempty"`
	// Sku may be omitted by access rules or projection.
	Sku *string `json:"sku,omitempty"`
	// Defaulted may be omitted by access rules or projection.
	Defaulted *string `json:"defaulted,omitempty"`
	// Meta may be omitted by access rules or projection.
	Meta *struct {
		// Description may be omitted by access rules or projection.
		Description *string `json:"description,omitempty"`
		// Accent may be omitted by access rules or projection.
		Accent *string `json:"accent,omitempty"`
	} `json:"meta,omitempty"`
	// Sections may be omitted by access rules or projection.
	Sections []struct {
		Key string `json:"_key"`
		// Label may be omitted by access rules or projection.
		Label *string `json:"label,omitempty"`
		// Sku may be omitted by access rules or projection.
		Sku *string `json:"sku,omitempty"`
		// Accent may be omitted by access rules or projection.
		Accent *string `json:"accent,omitempty"`
		// Products may be omitted by access rules or projection.
		Products []struct {
			Key string `json:"_key"`
			// Label may be omitted by access rules or projection.
			Label *string `json:"label,omitempty"`
			// Sku may be omitted by access rules or projection.
			Sku *string `json:"sku,omitempty"`
			// Accent may be omitted by access rules or projection.
			Accent *string `json:"accent,omitempty"`
		} `json:"products,omitempty"`
	} `json:"sections,omitempty"`
	// Content may be omitted by access rules or projection.
	Content *UnifiedArticlesContent `json:"content,omitempty"`
	// Author may be omitted by access rules or projection.
	Author *Reference[User] `json:"author,omitempty"`
	// Accent may be omitted by access rules or projection.
	Accent *string `json:"accent,omitempty"`
	// LocalizedAccent may be omitted by access rules or projection.
	LocalizedAccent *string `json:"localizedAccent,omitempty"`
	// LocalizedTitle may be omitted by access rules or projection.
	LocalizedTitle *string `json:"localizedTitle,omitempty"`
	// LocalizedMeta may be omitted by access rules or projection.
	LocalizedMeta *struct {
		// Description may be omitted by access rules or projection.
		Description *string `json:"description,omitempty"`
	} `json:"localizedMeta,omitempty"`
	// PrivateNote may be omitted by access rules or projection.
	PrivateNote *string `json:"privateNote,omitempty"`
	// PresentationHidden may be omitted by access rules or projection.
	PresentationHidden *string `json:"presentationHidden,omitempty"`
	// Body may be omitted by access rules or projection.
	Body *richtext.Document[UnifiedArticlesBodyBlocksBlockPayload] `json:"body,omitempty"`
	// Summary may be omitted by access rules or projection.
	Summary *string `json:"summary,omitempty"`
}

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

func (*UnifiedArticle) UnmarshalJSON

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

type UnifiedArticleAllLocales

type UnifiedArticleAllLocales struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	// Title may be omitted by access rules or projection.
	Title *string `json:"title,omitempty"`
	// Sku may be omitted by access rules or projection.
	Sku *string `json:"sku,omitempty"`
	// Defaulted may be omitted by access rules or projection.
	Defaulted *string `json:"defaulted,omitempty"`
	// Meta may be omitted by access rules or projection.
	Meta *struct {
		// Description may be omitted by access rules or projection.
		Description *string `json:"description,omitempty"`
		// Accent may be omitted by access rules or projection.
		Accent *string `json:"accent,omitempty"`
	} `json:"meta,omitempty"`
	// Sections may be omitted by access rules or projection.
	Sections []struct {
		Key string `json:"_key"`
		// Label may be omitted by access rules or projection.
		Label *string `json:"label,omitempty"`
		// Sku may be omitted by access rules or projection.
		Sku *string `json:"sku,omitempty"`
		// Accent may be omitted by access rules or projection.
		Accent *string `json:"accent,omitempty"`
		// Products may be omitted by access rules or projection.
		Products []struct {
			Key string `json:"_key"`
			// Label may be omitted by access rules or projection.
			Label *string `json:"label,omitempty"`
			// Sku may be omitted by access rules or projection.
			Sku *string `json:"sku,omitempty"`
			// Accent may be omitted by access rules or projection.
			Accent *string `json:"accent,omitempty"`
		} `json:"products,omitempty"`
	} `json:"sections,omitempty"`
	// Content may be omitted by access rules or projection.
	Content *UnifiedArticlesContentAllLocales `json:"content,omitempty"`
	// Author may be omitted by access rules or projection.
	Author *Reference[UserAllLocales] `json:"author,omitempty"`
	// Accent may be omitted by access rules or projection.
	Accent *string `json:"accent,omitempty"`
	// LocalizedAccent may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedAccent *map[string]*string `json:"localizedAccent,omitempty"`
	// LocalizedTitle may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedTitle *map[string]*string `json:"localizedTitle,omitempty"`
	// LocalizedMeta may be omitted by access rules or projection.
	LocalizedMeta *struct {
		// Description may be omitted by access rules or projection.
		// Locale-code map; missing locales are absent translations.
		Description *map[string]*string `json:"description,omitempty"`
	} `json:"localizedMeta,omitempty"`
	// PrivateNote may be omitted by access rules or projection.
	PrivateNote *string `json:"privateNote,omitempty"`
	// PresentationHidden may be omitted by access rules or projection.
	PresentationHidden *string `json:"presentationHidden,omitempty"`
	// Body may be omitted by access rules or projection.
	Body *richtext.Document[UnifiedArticlesBodyBlocksBlockAllLocalesPayload] `json:"body,omitempty"`
	// Summary may be omitted by access rules or projection.
	Summary *string `json:"summary,omitempty"`
}

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

func (*UnifiedArticleAllLocales) UnmarshalJSON

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

type UnifiedArticleCreate

type UnifiedArticleCreate struct {
	// Title is required when creating this value.
	Title string `json:"title"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Defaulted: nil omits the field; a pointer sends a value. Null is not allowed.
	Defaulted *string `json:"defaulted,omitempty"`
	// Meta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Meta *core.Input[struct {
		// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Description *core.Input[string] `json:"description,omitempty"`
		// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Accent *core.Input[string] `json:"accent,omitempty"`
	}] `json:"meta,omitempty"`
	// Sections: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sections *core.Input[[]struct {
		Key string `json:"_key,omitempty"`
		// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Label *core.Input[string] `json:"label,omitempty"`
		// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sku *core.Input[string] `json:"sku,omitempty"`
		// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Accent *core.Input[string] `json:"accent,omitempty"`
		// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Products *core.Input[[]struct {
			Key string `json:"_key,omitempty"`
			// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
			Label *core.Input[string] `json:"label,omitempty"`
			// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
			Sku *core.Input[string] `json:"sku,omitempty"`
			// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
			Accent *core.Input[string] `json:"accent,omitempty"`
		}] `json:"products,omitempty"`
	}] `json:"sections,omitempty"`
	// Content: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Content *core.Input[UnifiedArticlesContentInput] `json:"content,omitempty"`
	// Author: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Author *core.Input[string] `json:"author,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
	// LocalizedAccent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedAccent *core.Input[string] `json:"localizedAccent,omitempty"`
	// LocalizedTitle: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedTitle *core.Input[string] `json:"localizedTitle,omitempty"`
	// LocalizedMeta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedMeta *core.Input[struct {
		// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Description *core.Input[string] `json:"description,omitempty"`
	}] `json:"localizedMeta,omitempty"`
	// PrivateNote: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	PrivateNote *core.Input[string] `json:"privateNote,omitempty"`
	// PresentationHidden: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	PresentationHidden *core.Input[string] `json:"presentationHidden,omitempty"`
	// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Body *core.Input[richtext.Document[UnifiedArticlesBodyBlocksBlockInputPayload]] `json:"body,omitempty"`
}

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

func (*UnifiedArticleCreate) UnmarshalJSON

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

type UnifiedArticleUpdate

type UnifiedArticleUpdate struct {
	// Title: nil omits the field; a pointer sends a value. Null is not allowed.
	Title *string `json:"title,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Defaulted: nil omits the field; a pointer sends a value. Null is not allowed.
	Defaulted *string `json:"defaulted,omitempty"`
	// Meta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Meta *core.Input[struct {
		// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Description *core.Input[string] `json:"description,omitempty"`
		// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Accent *core.Input[string] `json:"accent,omitempty"`
	}] `json:"meta,omitempty"`
	// Sections: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sections *core.Input[[]struct {
		Key string `json:"_key,omitempty"`
		// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Label *core.Input[string] `json:"label,omitempty"`
		// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sku *core.Input[string] `json:"sku,omitempty"`
		// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Accent *core.Input[string] `json:"accent,omitempty"`
		// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Products *core.Input[[]struct {
			Key string `json:"_key,omitempty"`
			// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
			Label *core.Input[string] `json:"label,omitempty"`
			// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
			Sku *core.Input[string] `json:"sku,omitempty"`
			// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
			Accent *core.Input[string] `json:"accent,omitempty"`
		}] `json:"products,omitempty"`
	}] `json:"sections,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[UnifiedArticlesContentUpdate] `json:"content,omitempty"`
	// Author: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Author *core.Input[string] `json:"author,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
	// LocalizedAccent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedAccent *core.Input[string] `json:"localizedAccent,omitempty"`
	// LocalizedTitle: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedTitle *core.Input[string] `json:"localizedTitle,omitempty"`
	// LocalizedMeta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedMeta *core.Input[struct {
		// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Description *core.Input[string] `json:"description,omitempty"`
	}] `json:"localizedMeta,omitempty"`
	// PrivateNote: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	PrivateNote *core.Input[string] `json:"privateNote,omitempty"`
	// PresentationHidden: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	PresentationHidden *core.Input[string] `json:"presentationHidden,omitempty"`
	// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Body *core.Input[richtext.Document[UnifiedArticlesBodyBlocksBlockUpdatePayload]] `json:"body,omitempty"`
}

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

func (*UnifiedArticleUpdate) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlock

type UnifiedArticlesBodyBlocksBlock []UnifiedArticlesBodyBlocksBlockBlock

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

func (UnifiedArticlesBodyBlocksBlock) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlock) 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 (*UnifiedArticlesBodyBlocksBlock) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockAllLocales

type UnifiedArticlesBodyBlocksBlockAllLocales []UnifiedArticlesBodyBlocksBlockAllLocalesBlock

UnifiedArticlesBodyBlocksBlockAllLocales 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 (UnifiedArticlesBodyBlocksBlockAllLocales) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockAllLocales) 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 (*UnifiedArticlesBodyBlocksBlockAllLocales) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockAllLocalesBlock

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

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

type UnifiedArticlesBodyBlocksBlockAllLocalesPayload

type UnifiedArticlesBodyBlocksBlockAllLocalesPayload struct {
	Value UnifiedArticlesBodyBlocksBlockAllLocalesBlock
}

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

func (UnifiedArticlesBodyBlocksBlockAllLocalesPayload) MarshalJSON

func (UnifiedArticlesBodyBlocksBlockAllLocalesPayload) 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 (*UnifiedArticlesBodyBlocksBlockAllLocalesPayload) UnmarshalJSON

type UnifiedArticlesBodyBlocksBlockAllLocalesValue

type UnifiedArticlesBodyBlocksBlockAllLocalesValue []UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock

UnifiedArticlesBodyBlocksBlockAllLocalesValue 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 (UnifiedArticlesBodyBlocksBlockAllLocalesValue) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockAllLocalesValue) 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 (*UnifiedArticlesBodyBlocksBlockAllLocalesValue) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock

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

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

type UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload

type UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload struct {
	Value UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock
}

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

func (UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) MarshalJSON

func (UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) 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 (*UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON

type UnifiedArticlesBodyBlocksBlockBlock

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

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

type UnifiedArticlesBodyBlocksBlockCard

type UnifiedArticlesBodyBlocksBlockCard struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
	// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Products *BlockOptional[UnifiedArticlesBodyBlocksBlockCardProducts] `json:"products,omitempty"`
}

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

func (*UnifiedArticlesBodyBlocksBlockCard) BlockKey

func (value *UnifiedArticlesBodyBlocksBlockCard) BlockKey() string

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

func (*UnifiedArticlesBodyBlocksBlockCard) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesBodyBlocksBlockCard) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockCard) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardAllLocales

type UnifiedArticlesBodyBlocksBlockCardAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
	// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Products *BlockOptional[UnifiedArticlesBodyBlocksBlockCardProductsAllLocales] `json:"products,omitempty"`
}

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

func (*UnifiedArticlesBodyBlocksBlockCardAllLocales) BlockKey

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

func (*UnifiedArticlesBodyBlocksBlockCardAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesBodyBlocksBlockCardAllLocales) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockCardAllLocales) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardAllLocalesValue

type UnifiedArticlesBodyBlocksBlockCardAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
	// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Products *BlockOptional[UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue] `json:"products,omitempty"`
}

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

func (*UnifiedArticlesBodyBlocksBlockCardAllLocalesValue) BlockKey

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

func (*UnifiedArticlesBodyBlocksBlockCardAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesBodyBlocksBlockCardAllLocalesValue) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardInput

type UnifiedArticlesBodyBlocksBlockCardInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
	// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Products *core.Input[[]UnifiedArticlesBodyBlocksBlockCardProductsRowInput] `json:"products,omitempty"`
}

UnifiedArticlesBodyBlocksBlockCardInput is a generated block. Use *UnifiedArticlesBodyBlocksBlockCardInput 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 UnifiedArticlesBodyBlocksBlockCard; edit an existing occurrence with UnifiedArticlesBodyBlocksBlockCardUpdate.

func (*UnifiedArticlesBodyBlocksBlockCardInput) BlockKey

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

func (*UnifiedArticlesBodyBlocksBlockCardInput) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesBodyBlocksBlockCardInput) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockCardInput) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardProducts

type UnifiedArticlesBodyBlocksBlockCardProducts []UnifiedArticlesBodyBlocksBlockCardProductsRow

UnifiedArticlesBodyBlocksBlockCardProducts contains concrete array rows. Use Retain before editing existing rows.

func (UnifiedArticlesBodyBlocksBlockCardProducts) MarshalJSON

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

func (UnifiedArticlesBodyBlocksBlockCardProducts) Retain

Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.

func (*UnifiedArticlesBodyBlocksBlockCardProducts) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardProductsAllLocales

type UnifiedArticlesBodyBlocksBlockCardProductsAllLocales []UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocales

UnifiedArticlesBodyBlocksBlockCardProductsAllLocales contains concrete array rows. Use Retain before editing existing rows.

func (UnifiedArticlesBodyBlocksBlockCardProductsAllLocales) MarshalJSON

func (UnifiedArticlesBodyBlocksBlockCardProductsAllLocales) Retain

Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.

func (*UnifiedArticlesBodyBlocksBlockCardProductsAllLocales) UnmarshalJSON

type UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue

type UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue []UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocalesValue

UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue contains concrete array rows. Use Retain before editing existing rows.

func (UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue) MarshalJSON

func (UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue) Retain

Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.

func (*UnifiedArticlesBodyBlocksBlockCardProductsAllLocalesValue) UnmarshalJSON

type UnifiedArticlesBodyBlocksBlockCardProductsRow

type UnifiedArticlesBodyBlocksBlockCardProductsRow struct {
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesBodyBlocksBlockCardProductsRow) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockCardProductsRow) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesBodyBlocksBlockCardProductsRow) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocales

type UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocales struct {
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocales) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocales) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocales) UnmarshalJSON

type UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocalesValue

type UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocalesValue struct {
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocalesValue) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocalesValue) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowAllLocalesValue) UnmarshalJSON

type UnifiedArticlesBodyBlocksBlockCardProductsRowInput

type UnifiedArticlesBodyBlocksBlockCardProductsRowInput struct {
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesBodyBlocksBlockCardProductsRowInput) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowInput) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowInput) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardProductsRowUpdate

type UnifiedArticlesBodyBlocksBlockCardProductsRowUpdate struct {
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesBodyBlocksBlockCardProductsRowUpdate) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowUpdate) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesBodyBlocksBlockCardProductsRowUpdate) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardProductsUpdate

type UnifiedArticlesBodyBlocksBlockCardProductsUpdate []UnifiedArticlesBodyBlocksBlockCardProductsUpdateRow

func (UnifiedArticlesBodyBlocksBlockCardProductsUpdate) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockCardProductsUpdate) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockCardProductsUpdateRow

type UnifiedArticlesBodyBlocksBlockCardProductsUpdateRow interface {
	RowKey() string
	// contains filtered or unexported methods
}

UnifiedArticlesBodyBlocksBlockCardProductsUpdateRow admits new input and retained update pointers. RowKey exposes identity without a type assertion.

type UnifiedArticlesBodyBlocksBlockCardUpdate

type UnifiedArticlesBodyBlocksBlockCardUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
	// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Products *core.Input[UnifiedArticlesBodyBlocksBlockCardProductsUpdate] `json:"products,omitempty"`
}

UnifiedArticlesBodyBlocksBlockCardUpdate is a generated block. Use *UnifiedArticlesBodyBlocksBlockCardUpdate 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 UnifiedArticlesBodyBlocksBlockCardInput for additions.

func (*UnifiedArticlesBodyBlocksBlockCardUpdate) BlockKey

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

func (*UnifiedArticlesBodyBlocksBlockCardUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesBodyBlocksBlockCardUpdate) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockCardUpdate) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockInput

type UnifiedArticlesBodyBlocksBlockInput []UnifiedArticlesBodyBlocksBlockInputBlock

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

func (UnifiedArticlesBodyBlocksBlockInput) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockInput) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockInputBlock

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

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

type UnifiedArticlesBodyBlocksBlockInputPayload

type UnifiedArticlesBodyBlocksBlockInputPayload struct {
	Value UnifiedArticlesBodyBlocksBlockInputBlock
}

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

func (UnifiedArticlesBodyBlocksBlockInputPayload) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockInputPayload) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockPayload

type UnifiedArticlesBodyBlocksBlockPayload struct {
	Value UnifiedArticlesBodyBlocksBlockBlock
}

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

func (UnifiedArticlesBodyBlocksBlockPayload) MarshalJSON

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

func (UnifiedArticlesBodyBlocksBlockPayload) 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 (*UnifiedArticlesBodyBlocksBlockPayload) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockUpdate

type UnifiedArticlesBodyBlocksBlockUpdate []UnifiedArticlesBodyBlocksBlockUpdateBlock

UnifiedArticlesBodyBlocksBlockUpdate 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 (UnifiedArticlesBodyBlocksBlockUpdate) MarshalJSON

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

func (*UnifiedArticlesBodyBlocksBlockUpdate) UnmarshalJSON

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

type UnifiedArticlesBodyBlocksBlockUpdateBlock

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

UnifiedArticlesBodyBlocksBlockUpdateBlock 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 UnifiedArticlesBodyBlocksBlockUpdatePayload

type UnifiedArticlesBodyBlocksBlockUpdatePayload struct {
	Value UnifiedArticlesBodyBlocksBlockUpdateBlock
}

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

func (UnifiedArticlesBodyBlocksBlockUpdatePayload) MarshalJSON

func (*UnifiedArticlesBodyBlocksBlockUpdatePayload) UnmarshalJSON

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

type UnifiedArticlesContent

type UnifiedArticlesContent []UnifiedArticlesContentBlock

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

func (UnifiedArticlesContent) MarshalJSON

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

func (*UnifiedArticlesContent) 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 (*UnifiedArticlesContent) UnmarshalJSON

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

type UnifiedArticlesContentAllLocales

type UnifiedArticlesContentAllLocales []UnifiedArticlesContentAllLocalesBlock

UnifiedArticlesContentAllLocales 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 (UnifiedArticlesContentAllLocales) MarshalJSON

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

func (*UnifiedArticlesContentAllLocales) 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 (*UnifiedArticlesContentAllLocales) UnmarshalJSON

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

type UnifiedArticlesContentAllLocalesBlock

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

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

type UnifiedArticlesContentAllLocalesValue

type UnifiedArticlesContentAllLocalesValue []UnifiedArticlesContentAllLocalesValueBlock

UnifiedArticlesContentAllLocalesValue 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 (UnifiedArticlesContentAllLocalesValue) MarshalJSON

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

func (*UnifiedArticlesContentAllLocalesValue) 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 (*UnifiedArticlesContentAllLocalesValue) UnmarshalJSON

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

type UnifiedArticlesContentAllLocalesValueBlock

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

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

type UnifiedArticlesContentBlock

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

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

type UnifiedArticlesContentCard

type UnifiedArticlesContentCard struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
	// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Products *BlockOptional[UnifiedArticlesContentCardProducts] `json:"products,omitempty"`
}

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

func (*UnifiedArticlesContentCard) BlockKey

func (value *UnifiedArticlesContentCard) BlockKey() string

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

func (*UnifiedArticlesContentCard) BlockType

func (*UnifiedArticlesContentCard) BlockType() string

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentCard) MarshalJSON

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

func (*UnifiedArticlesContentCard) UnmarshalJSON

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

type UnifiedArticlesContentCardAllLocales

type UnifiedArticlesContentCardAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
	// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Products *BlockOptional[UnifiedArticlesContentCardProductsAllLocales] `json:"products,omitempty"`
}

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

func (*UnifiedArticlesContentCardAllLocales) BlockKey

func (value *UnifiedArticlesContentCardAllLocales) BlockKey() string

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

func (*UnifiedArticlesContentCardAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentCardAllLocales) MarshalJSON

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

func (*UnifiedArticlesContentCardAllLocales) UnmarshalJSON

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

type UnifiedArticlesContentCardAllLocalesValue

type UnifiedArticlesContentCardAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
	// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Products *BlockOptional[UnifiedArticlesContentCardProductsAllLocalesValue] `json:"products,omitempty"`
}

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

func (*UnifiedArticlesContentCardAllLocalesValue) BlockKey

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

func (*UnifiedArticlesContentCardAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentCardAllLocalesValue) MarshalJSON

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

func (*UnifiedArticlesContentCardAllLocalesValue) UnmarshalJSON

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

type UnifiedArticlesContentCardInput

type UnifiedArticlesContentCardInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
	// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Products *core.Input[[]UnifiedArticlesContentCardProductsRowInput] `json:"products,omitempty"`
}

UnifiedArticlesContentCardInput is a generated block. Use *UnifiedArticlesContentCardInput 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 UnifiedArticlesContentCard; edit an existing occurrence with UnifiedArticlesContentCardUpdate.

func (*UnifiedArticlesContentCardInput) BlockKey

func (value *UnifiedArticlesContentCardInput) BlockKey() string

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

func (*UnifiedArticlesContentCardInput) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentCardInput) MarshalJSON

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

func (*UnifiedArticlesContentCardInput) UnmarshalJSON

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

type UnifiedArticlesContentCardProducts

type UnifiedArticlesContentCardProducts []UnifiedArticlesContentCardProductsRow

UnifiedArticlesContentCardProducts contains concrete array rows. Use Retain before editing existing rows.

func (UnifiedArticlesContentCardProducts) MarshalJSON

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

func (UnifiedArticlesContentCardProducts) Retain

Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.

func (*UnifiedArticlesContentCardProducts) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsAllLocales

type UnifiedArticlesContentCardProductsAllLocales []UnifiedArticlesContentCardProductsRowAllLocales

UnifiedArticlesContentCardProductsAllLocales contains concrete array rows. Use Retain before editing existing rows.

func (UnifiedArticlesContentCardProductsAllLocales) MarshalJSON

func (UnifiedArticlesContentCardProductsAllLocales) Retain

Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.

func (*UnifiedArticlesContentCardProductsAllLocales) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsAllLocalesValue

type UnifiedArticlesContentCardProductsAllLocalesValue []UnifiedArticlesContentCardProductsRowAllLocalesValue

UnifiedArticlesContentCardProductsAllLocalesValue contains concrete array rows. Use Retain before editing existing rows.

func (UnifiedArticlesContentCardProductsAllLocalesValue) MarshalJSON

func (UnifiedArticlesContentCardProductsAllLocalesValue) Retain

Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.

func (*UnifiedArticlesContentCardProductsAllLocalesValue) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsRow

type UnifiedArticlesContentCardProductsRow struct {
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesContentCardProductsRow) MarshalJSON

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

func (*UnifiedArticlesContentCardProductsRow) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesContentCardProductsRow) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsRowAllLocales

type UnifiedArticlesContentCardProductsRowAllLocales struct {
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesContentCardProductsRowAllLocales) MarshalJSON

func (*UnifiedArticlesContentCardProductsRowAllLocales) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesContentCardProductsRowAllLocales) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsRowAllLocalesValue

type UnifiedArticlesContentCardProductsRowAllLocalesValue struct {
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sku *BlockOptional[string] `json:"sku,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesContentCardProductsRowAllLocalesValue) MarshalJSON

func (*UnifiedArticlesContentCardProductsRowAllLocalesValue) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesContentCardProductsRowAllLocalesValue) UnmarshalJSON

type UnifiedArticlesContentCardProductsRowInput

type UnifiedArticlesContentCardProductsRowInput struct {
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesContentCardProductsRowInput) MarshalJSON

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

func (*UnifiedArticlesContentCardProductsRowInput) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesContentCardProductsRowInput) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsRowUpdate

type UnifiedArticlesContentCardProductsRowUpdate struct {
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
}

func (UnifiedArticlesContentCardProductsRowUpdate) MarshalJSON

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

func (*UnifiedArticlesContentCardProductsRowUpdate) RowKey

RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.

func (*UnifiedArticlesContentCardProductsRowUpdate) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsUpdate

type UnifiedArticlesContentCardProductsUpdate []UnifiedArticlesContentCardProductsUpdateRow

func (UnifiedArticlesContentCardProductsUpdate) MarshalJSON

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

func (*UnifiedArticlesContentCardProductsUpdate) UnmarshalJSON

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

type UnifiedArticlesContentCardProductsUpdateRow

type UnifiedArticlesContentCardProductsUpdateRow interface {
	RowKey() string
	// contains filtered or unexported methods
}

UnifiedArticlesContentCardProductsUpdateRow admits new input and retained update pointers. RowKey exposes identity without a type assertion.

type UnifiedArticlesContentCardUpdate

type UnifiedArticlesContentCardUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sku *core.Input[string] `json:"sku,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
	// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Products *core.Input[UnifiedArticlesContentCardProductsUpdate] `json:"products,omitempty"`
}

UnifiedArticlesContentCardUpdate is a generated block. Use *UnifiedArticlesContentCardUpdate 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 UnifiedArticlesContentCardInput for additions.

func (*UnifiedArticlesContentCardUpdate) BlockKey

func (value *UnifiedArticlesContentCardUpdate) BlockKey() string

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

func (*UnifiedArticlesContentCardUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentCardUpdate) MarshalJSON

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

func (*UnifiedArticlesContentCardUpdate) UnmarshalJSON

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

type UnifiedArticlesContentInput

type UnifiedArticlesContentInput []UnifiedArticlesContentInputBlock

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

func (UnifiedArticlesContentInput) MarshalJSON

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

func (*UnifiedArticlesContentInput) UnmarshalJSON

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

type UnifiedArticlesContentInputBlock

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

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

type UnifiedArticlesContentNote

type UnifiedArticlesContentNote struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

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

func (*UnifiedArticlesContentNote) BlockKey

func (value *UnifiedArticlesContentNote) BlockKey() string

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

func (*UnifiedArticlesContentNote) BlockType

func (*UnifiedArticlesContentNote) BlockType() string

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentNote) MarshalJSON

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

func (*UnifiedArticlesContentNote) UnmarshalJSON

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

type UnifiedArticlesContentNoteAllLocales

type UnifiedArticlesContentNoteAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

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

func (*UnifiedArticlesContentNoteAllLocales) BlockKey

func (value *UnifiedArticlesContentNoteAllLocales) BlockKey() string

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

func (*UnifiedArticlesContentNoteAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentNoteAllLocales) MarshalJSON

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

func (*UnifiedArticlesContentNoteAllLocales) UnmarshalJSON

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

type UnifiedArticlesContentNoteAllLocalesValue

type UnifiedArticlesContentNoteAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Label *BlockOptional[string] `json:"label,omitempty"`
	// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Accent *BlockOptional[string] `json:"accent,omitempty"`
}

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

func (*UnifiedArticlesContentNoteAllLocalesValue) BlockKey

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

func (*UnifiedArticlesContentNoteAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentNoteAllLocalesValue) MarshalJSON

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

func (*UnifiedArticlesContentNoteAllLocalesValue) UnmarshalJSON

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

type UnifiedArticlesContentNoteInput

type UnifiedArticlesContentNoteInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
}

UnifiedArticlesContentNoteInput is a generated block. Use *UnifiedArticlesContentNoteInput 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 UnifiedArticlesContentNote; edit an existing occurrence with UnifiedArticlesContentNoteUpdate.

func (*UnifiedArticlesContentNoteInput) BlockKey

func (value *UnifiedArticlesContentNoteInput) BlockKey() string

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

func (*UnifiedArticlesContentNoteInput) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentNoteInput) MarshalJSON

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

func (*UnifiedArticlesContentNoteInput) UnmarshalJSON

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

type UnifiedArticlesContentNoteUpdate

type UnifiedArticlesContentNoteUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Label *core.Input[string] `json:"label,omitempty"`
	// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Accent *core.Input[string] `json:"accent,omitempty"`
}

UnifiedArticlesContentNoteUpdate is a generated block. Use *UnifiedArticlesContentNoteUpdate 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 UnifiedArticlesContentNoteInput for additions.

func (*UnifiedArticlesContentNoteUpdate) BlockKey

func (value *UnifiedArticlesContentNoteUpdate) BlockKey() string

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

func (*UnifiedArticlesContentNoteUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (UnifiedArticlesContentNoteUpdate) MarshalJSON

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

func (*UnifiedArticlesContentNoteUpdate) UnmarshalJSON

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

type UnifiedArticlesContentUpdate

type UnifiedArticlesContentUpdate []UnifiedArticlesContentUpdateBlock

UnifiedArticlesContentUpdate 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 (UnifiedArticlesContentUpdate) MarshalJSON

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

func (*UnifiedArticlesContentUpdate) UnmarshalJSON

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

type UnifiedArticlesContentUpdateBlock

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

UnifiedArticlesContentUpdateBlock 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 User

type User struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	// Name may be omitted by access rules or projection.
	Name *string `json:"name,omitempty"`
}

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

func (*User) UnmarshalJSON

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

type UserAllLocales

type UserAllLocales struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	// Name may be omitted by access rules or projection.
	Name *string `json:"name,omitempty"`
}

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

func (*UserAllLocales) UnmarshalJSON

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

type UserCreate

type UserCreate struct {
	// Name is required when creating this value.
	Name string `json:"name"`
}

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

func (*UserCreate) UnmarshalJSON

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

type UserUpdate

type UserUpdate struct {
	// Name: nil omits the field; a pointer sends a value. Null is not allowed.
	Name *string `json:"name,omitempty"`
}

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

func (*UserUpdate) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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