Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatetimeInput ¶ added in v1.1.4
type DatetimeInput struct {
// contains filtered or unexported fields
}
func Datetime ¶ added in v1.1.4
func Datetime(formats ...string) DatetimeInput
func (DatetimeInput) Passes ¶ added in v1.1.4
func (d DatetimeInput) Passes(input contracts.InputValue) (success bool, skipAll bool)
type FileInput ¶
type FileInput struct { Attribute string Source contracts.InputSource }
type NullableInput ¶
type NullableInput struct { }
func (NullableInput) Passes ¶
func (ni NullableInput) Passes(input contracts.InputValue) (success bool, skipAll bool)
type NumberType ¶
type NumberType string
const ( TypeInterger NumberType = "integer" TypeFloat NumberType = "float" TypeInt NumberType = "int" )
type NumericInput ¶
type NumericInput struct {
// contains filtered or unexported fields
}
func Numeric ¶ added in v1.1.4
func Numeric(t NumberType) NumericInput
func (NumericInput) Passes ¶
func (ni NumericInput) Passes(input contracts.InputValue) (success bool, skipAll bool)
type RequiredIfRule ¶ added in v1.1.4
type RequiredIfRule struct {
// contains filtered or unexported fields
}
func RequiredIf ¶ added in v1.1.4
func RequiredIf(fn func() bool) RequiredIfRule
func (RequiredIfRule) Passes ¶ added in v1.1.4
func (ri RequiredIfRule) Passes(input contracts.InputValue) (success bool, skipAll bool)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.