func (o *GetUserByEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrEmail := o.Email
	qEmail := qrEmail
	if qEmail != "" {
		if err := r.SetQueryParam("email", qEmail); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package users
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
)
func NewGetUserByEmailParams() *GetUserByEmailParams {
	var ()
	return &GetUserByEmailParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetUserByEmailParamsWithTimeout(timeout time.Duration) *GetUserByEmailParams {
	var ()
	return &GetUserByEmailParams{
		timeout: timeout,
	}
}
func NewGetUserByEmailParamsWithContext(ctx context.Context) *GetUserByEmailParams {
	var ()
	return &GetUserByEmailParams{
		Context: ctx,
	}
}
func NewGetUserByEmailParamsWithHTTPClient(client *http.Client) *GetUserByEmailParams {
	var ()
	return &GetUserByEmailParams{
		HTTPClient: client,
	}
}
type GetUserByEmailParams struct {
	Email string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetUserByEmailParams) WithTimeout(timeout time.Duration) *GetUserByEmailParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetUserByEmailParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetUserByEmailParams) WithContext(ctx context.Context) *GetUserByEmailParams {
	o.SetContext(ctx)
	return o
}
func (o *GetUserByEmailParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetUserByEmailParams) WithHTTPClient(client *http.Client) *GetUserByEmailParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetUserByEmailParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetUserByEmailParams) WithEmail(email string) *GetUserByEmailParams {
	o.SetEmail(email)
	return o
}
func (o *GetUserByEmailParams) SetEmail(email string) {
	o.Email = email
}