gtslib/models/instance_v2_registrations.go
decentral1se e4ade9c758
All checks were successful
continuous-integration/drone/push Build is passing
feat: init
2024-07-31 22:47:18 +02:00

61 lines
1.7 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"
)
// InstanceV2Registrations Information about registering for this instance.
//
// swagger:model InstanceV2Registrations
type InstanceV2Registrations struct {
// Whether registrations require moderator approval.
// Example: true
ApprovalRequired bool `json:"approval_required,omitempty"`
// Whether registrations are enabled.
// Example: false
Enabled bool `json:"enabled,omitempty"`
// A custom message (html string) to be shown when registrations are closed.
// Value will be null if no message is set.
// Example: \u003cp\u003eRegistrations are currently closed on example.org because of spam bots!\u003c/p\u003e
Message string `json:"message,omitempty"`
}
// Validate validates this instance v2 registrations
func (m *InstanceV2Registrations) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this instance v2 registrations based on context it is used
func (m *InstanceV2Registrations) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *InstanceV2Registrations) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *InstanceV2Registrations) UnmarshalBinary(b []byte) error {
var res InstanceV2Registrations
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}