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 MyUUIDIn ¶
type MyUUIDIn struct {
UUID *string `json:"uUID"`
}
Input struct
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)
Click to show internal directories.
Click to hide internal directories.