1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
9 strfmt "github.com/go-openapi/strfmt"
11 "github.com/go-openapi/errors"
12 "github.com/go-openapi/swag"
15 // ReportActionDefinition report action definition
16 // swagger:model ReportActionDefinition
17 type ReportActionDefinition struct {
19 // action definition format1
20 ActionDefinitionFormat1 *Format1ActionDefinition `json:"ActionDefinitionFormat1,omitempty"`
23 // Validate validates this report action definition
24 func (m *ReportActionDefinition) Validate(formats strfmt.Registry) error {
27 if err := m.validateActionDefinitionFormat1(formats); err != nil {
28 res = append(res, err)
32 return errors.CompositeValidationError(res...)
37 func (m *ReportActionDefinition) validateActionDefinitionFormat1(formats strfmt.Registry) error {
39 if swag.IsZero(m.ActionDefinitionFormat1) { // not required
43 if m.ActionDefinitionFormat1 != nil {
44 if err := m.ActionDefinitionFormat1.Validate(formats); err != nil {
45 if ve, ok := err.(*errors.Validation); ok {
46 return ve.ValidateName("ActionDefinitionFormat1")
55 // MarshalBinary interface implementation
56 func (m *ReportActionDefinition) MarshalBinary() ([]byte, error) {
60 return swag.WriteJSON(m)
63 // UnmarshalBinary interface implementation
64 func (m *ReportActionDefinition) UnmarshalBinary(b []byte) error {
65 var res ReportActionDefinition
66 if err := swag.ReadJSON(b, &res); err != nil {