func (m Message) Validate() error {
	if err := m.Header.Validate(); err != nil {
		return fmt.Errorf("bad Header: %v", err)
	}
	if err := m.StructuredData.Validate(); err != nil {
		return fmt.Errorf("bad StructuredData: %v", err)
	}
	if err := validateUTF8(m.Msg); err != nil {
		return fmt.Errorf("bad Msg: %v", err)
	}
	return nil
}
// Validate ensures that the record is correct.
Validate ensures that the record is correct.
// Validate ensures that the record is correct .
func (m Message) Validate() error {
	if err := m.Header.Validate(); err != nil {
		return fmt.Errorf("bad Header: %v", err)
	}
	if err := m.StructuredData.Validate(); err != nil {
		return fmt.Errorf("bad StructuredData: %v", err)
	}
	if err := validateUTF8(m.Msg); err != nil {
		return fmt.Errorf("bad Msg: %v", err)
	}
	return nil
}
func ( m Message ) Validate ( ) error { if err := m . Header . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := m . StructuredData . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := validateUTF8 ( m . Msg ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
Validate ensures that the record is correct.
Validate ensures that the record is correct .