func (f *StatusHistoryFilter) Validate() error {
	s := f.Size > 0
	t := f.FromDate != nil
	d := f.Delta != nil

	switch {
	case !(s || t || d):
		return errors.NotValidf("missing filter parameters")
	case s && t:
		return errors.NotValidf("Size and Date together")
	case s && d:
		return errors.NotValidf("Size and Delta together")
	case t && d:
		return errors.NotValidf("Date and Delta together")
	}
	return nil
}
// Validate checks that the minimum requirements of a StatusHistoryFilter are met.
Validate checks that the minimum requirements of a StatusHistoryFilter are met.
// Validate checks that the minimum requirements of a StatusHistoryFilter are met .
func (f *StatusHistoryFilter) Validate() error {
	s := f.Size > 0
	t := f.FromDate != nil
	d := f.Delta != nil
	switch {
	case !(s || t || d):
		return errors.NotValidf("missing filter parameters")
	case s && t:
		return errors.NotValidf("Size and Date together")
	case s && d:
		return errors.NotValidf("Size and Delta together")
	case t && d:
		return errors.NotValidf("Date and Delta together")
	}
	return nil
}
func ( f * StatusHistoryFilter ) Validate ( ) error { s := f . Size > 0 t := f . FromDate != nil d := f . Delta != nil switch { case ! ( s || t || d ) : return errors . NotValidf ( " " ) case s && t : return errors . NotValidf ( " " ) case s && d : return errors . NotValidf ( " " ) case t && d : return errors . NotValidf ( " " ) } return nil }
Validate checks that the minimum requirements of a StatusHistoryFilter are met.
Validate checks that the minimum requirements of a StatusHistoryFilter are met .