zrok/rest_model_zrok/invite_request.go

54 lines
1.1 KiB
Go
Raw Permalink Normal View History

// Code generated by go-swagger; DO NOT EDIT.
package rest_model_zrok
// 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"
)
2022-11-30 17:43:00 +01:00
// InviteRequest invite request
//
2022-11-30 17:43:00 +01:00
// swagger:model inviteRequest
type InviteRequest struct {
2022-09-09 16:20:05 +02:00
// email
Email string `json:"email,omitempty"`
2023-01-09 20:23:02 +01:00
// token
Token string `json:"token,omitempty"`
}
2022-11-30 17:43:00 +01:00
// Validate validates this invite request
func (m *InviteRequest) Validate(formats strfmt.Registry) error {
return nil
}
2022-11-30 17:43:00 +01:00
// ContextValidate validates this invite request based on context it is used
func (m *InviteRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
2022-11-30 17:43:00 +01:00
func (m *InviteRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
2022-11-30 17:43:00 +01:00
func (m *InviteRequest) UnmarshalBinary(b []byte) error {
var res InviteRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}