// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// SilenceMetadata silence metadata
//
// swagger:model SilenceMetadata
type SilenceMetadata struct {

	// folder uid
	FolderUID string `json:"folder_uid,omitempty"`

	// rule title
	RuleTitle string `json:"rule_title,omitempty"`

	// rule uid
	RuleUID string `json:"rule_uid,omitempty"`
}

// Validate validates this silence metadata
func (m *SilenceMetadata) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this silence metadata based on context it is used
func (m *SilenceMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *SilenceMetadata) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *SilenceMetadata) UnmarshalBinary(b []byte) error {
	var res SilenceMetadata
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
