All checks were successful
continuous-integration/drone/push Build is passing
57 lines
1.3 KiB
Go
57 lines
1.3 KiB
Go
// 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"
|
|
)
|
|
|
|
// Theme Theme represents one user-selectable preset CSS theme.
|
|
//
|
|
// swagger:model Theme
|
|
type Theme struct {
|
|
|
|
// User-facing description of this theme.
|
|
Description string `json:"description,omitempty"`
|
|
|
|
// FileName of this theme in the themes directory.
|
|
FileName string `json:"file_name,omitempty"`
|
|
|
|
// User-facing title of this theme.
|
|
Title string `json:"title,omitempty"`
|
|
}
|
|
|
|
// Validate validates this theme
|
|
func (m *Theme) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this theme based on context it is used
|
|
func (m *Theme) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *Theme) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *Theme) UnmarshalBinary(b []byte) error {
|
|
var res Theme
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|