func (m *ExecCreateConfig) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
MarshalBinary interface implementation
package types
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type ExecCreateConfig struct {
	AttachStderr bool `json:"AttachStderr,omitempty"`
	AttachStdin bool `json:"AttachStdin,omitempty"`
	AttachStdout bool `json:"AttachStdout,omitempty"`
	Cmd []string `json:"Cmd"`
	Detach bool `json:"Detach,omitempty"`
	DetachKeys string `json:"DetachKeys,omitempty"`
	Privileged bool `json:"Privileged,omitempty"`
	Tty bool `json:"Tty,omitempty"`
	User string `json:"User,omitempty"`
}
func (m *ExecCreateConfig) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateCmd(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *ExecCreateConfig) validateCmd(formats strfmt.Registry) error {
	if swag.IsZero(m.Cmd) {  
		return nil
	}
	iCmdSize := int64(len(m.Cmd))
	if err := validate.MinItems("Cmd", "body", iCmdSize, 1); err != nil {
		return err
	}
	return nil
}