importfrom

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Generated file DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyUUID

type MyUUID struct {
	UUID string
}

Type from package you have control over vgen:"i"

type MyUUIDIn

type MyUUIDIn struct {
	UUID *string `json:"uUID"`
}

Input struct

func (MyUUIDIn) Convert

func (in MyUUIDIn) Convert() MyUUID

Convert input struct to original

func (MyUUIDIn) Validate

func (in MyUUIDIn) Validate(r MyUUIDRules) validation.Error

func (MyUUIDIn) ValidatedConvert

func (in MyUUIDIn) ValidatedConvert(r MyUUIDRules) (MyUUID, validation.Error)

type MyUUIDRules

type MyUUIDRules struct {
	UUID   validation.Rule[string]
	Custom validation.Rule[MyUUID]
}

Rules

func (MyUUIDRules) Validate

func (r MyUUIDRules) Validate(in MyUUIDIn) validation.Error

Validate required and validation rules

func (MyUUIDRules) ValidatedConvert

func (r MyUUIDRules) ValidatedConvert(in MyUUIDIn) (MyUUID, validation.Error)

type OtherUUID

type OtherUUID struct {
	UUID string
}

Type from package you do NOT have control over, (no vgen:"i" to illustrate that)

type OtherUUIDIn

type OtherUUIDIn struct {
	UUID *string `json:"uUID"`
}

Input struct

func (OtherUUIDIn) Convert

func (in OtherUUIDIn) Convert() OtherUUID

Convert input struct to original

func (OtherUUIDIn) Validate

func (in OtherUUIDIn) Validate(r OtherUUIDRules) validation.Error

func (OtherUUIDIn) ValidatedConvert

func (in OtherUUIDIn) ValidatedConvert(r OtherUUIDRules) (OtherUUID, validation.Error)

type OtherUUIDRules

type OtherUUIDRules struct {
	UUID   validation.Rule[string]
	Custom validation.Rule[OtherUUID]
}

Rules

func (OtherUUIDRules) Validate

func (r OtherUUIDRules) Validate(in OtherUUIDIn) validation.Error

Validate required and validation rules

func (OtherUUIDRules) ValidatedConvert

func (r OtherUUIDRules) ValidatedConvert(in OtherUUIDIn) (OtherUUID, validation.Error)

Jump to

Keyboard shortcuts

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