display

package
v0.0.0-...-5b643b5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependent

type Dependent struct {
	Foo Example
	Bar sliceund.Und[Example] `und:"required"`
}

func (Dependent) UndPlain

func (v Dependent) UndPlain() DependentPlain

func (Dependent) UndValidate

func (v Dependent) UndValidate() (err error)

type DependentPatch

type DependentPatch struct {
	Foo sliceund.Und[Example] `json:",omitempty"`
	Bar sliceund.Und[Example] `und:"required" json:",omitempty"`
}

func (DependentPatch) ApplyPatch

func (p DependentPatch) ApplyPatch(v Dependent) Dependent

func (*DependentPatch) FromValue

func (p *DependentPatch) FromValue(v Dependent)

func (DependentPatch) Merge

func (DependentPatch) ToValue

func (p DependentPatch) ToValue() Dependent

type DependentPlain

type DependentPlain struct {
	Foo ExamplePlain
	Bar ExamplePlain `und:"required"`
}

func (DependentPlain) UndRaw

func (v DependentPlain) UndRaw() Dependent

type Example

type Example struct {
	Foo    string
	Bar    option.Option[string]        // no tag
	Baz    option.Option[string]        `und:"def"`
	Qux    und.Und[string]              `und:"def,und"`
	Quux   elastic.Elastic[string]      `und:"null,len==3"`
	Corge  sliceund.Und[string]         `und:"nullish"`
	Grault sliceelastic.Elastic[string] `und:"und,len>=2,values:nonnull"`
}

func (Example) UndPlain

func (v Example) UndPlain() ExamplePlain

func (Example) UndValidate

func (v Example) UndValidate() (err error)

type ExamplePatch

type ExamplePatch struct {
	Foo    sliceund.Und[string]         `json:",omitempty"`
	Bar    sliceund.Und[string]         `json:",omitempty"` // no tag
	Baz    sliceund.Und[string]         `und:"def" json:",omitempty"`
	Qux    und.Und[string]              `und:"def,und" json:",omitzero"`
	Quux   elastic.Elastic[string]      `und:"null,len==3" json:",omitzero"`
	Corge  sliceund.Und[string]         `und:"nullish" json:",omitempty"`
	Grault sliceelastic.Elastic[string] `und:"und,len>=2,values:nonnull" json:",omitempty"`
}

func (ExamplePatch) ApplyPatch

func (p ExamplePatch) ApplyPatch(v Example) Example

func (*ExamplePatch) FromValue

func (p *ExamplePatch) FromValue(v Example)

func (ExamplePatch) Merge

func (ExamplePatch) ToValue

func (p ExamplePatch) ToValue() Example

type ExamplePlain

type ExamplePlain struct {
	Foo    string
	Bar    option.Option[string]                   // no tag
	Baz    string                                  `und:"def"`
	Qux    option.Option[string]                   `und:"def,und"`
	Quux   option.Option[[3]option.Option[string]] `und:"null,len==3"`
	Corge  option.Option[conversion.Empty]         `und:"nullish"`
	Grault option.Option[[]string]                 `und:"und,len>=2,values:nonnull"`
}

func (ExamplePlain) UndRaw

func (v ExamplePlain) UndRaw() Example

type PatchExample

type PatchExample struct {
	Foo string
	Bar *int     `json:",omitempty"`
	Baz []string `json:"baz,omitempty"`
}

type PatchExamplePatch

type PatchExamplePatch struct {
	Foo sliceund.Und[string]   `json:",omitempty"`
	Bar sliceund.Und[*int]     `json:",omitempty"`
	Baz sliceund.Und[[]string] `json:"baz,omitempty"`
}

func (PatchExamplePatch) ApplyPatch

func (*PatchExamplePatch) FromValue

func (p *PatchExamplePatch) FromValue(v PatchExample)

func (PatchExamplePatch) Merge

func (PatchExamplePatch) ToValue

func (p PatchExamplePatch) ToValue() PatchExample

Jump to

Keyboard shortcuts

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