action

package
v0.0.40-alpha8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateContactAction

type CreateContactAction struct {
	// contains filtered or unexported fields
}

func CreateContact

func CreateContact(v viewer.ViewerContext) *CreateContactAction

CreateContact is the factory method to get an ...

func CreateContactFromContext

func CreateContactFromContext(ctx context.Context) *CreateContactAction

CreateContactFromContext is the factory method to get an ...

func (*CreateContactAction) Entity

func (action *CreateContactAction) Entity() ent.Entity

func (*CreateContactAction) ExistingEnt

func (action *CreateContactAction) ExistingEnt() ent.Entity

func (*CreateContactAction) GetBuilder

func (action *CreateContactAction) GetBuilder() ent.MutationBuilder

func (*CreateContactAction) GetChangeset

func (action *CreateContactAction) GetChangeset() (ent.Changeset, error)

func (*CreateContactAction) GetObservers

func (action *CreateContactAction) GetObservers() []actions.Observer

func (*CreateContactAction) GetPrivacyPolicy

func (action *CreateContactAction) GetPrivacyPolicy() ent.PrivacyPolicy

func (*CreateContactAction) GetTypedBuilder

func (action *CreateContactAction) GetTypedBuilder() *builder.ContactMutationBuilder

func (*CreateContactAction) GetViewer

func (action *CreateContactAction) GetViewer() viewer.ViewerContext

func (*CreateContactAction) Save

func (action *CreateContactAction) Save() (*models.Contact, error)

Save is the method called to execute this action and save change

func (*CreateContactAction) SetBuilderOnObservers

func (action *CreateContactAction) SetBuilderOnObservers(observers []actions.Observer)

func (*CreateContactAction) SetBuilderOnTriggers

func (action *CreateContactAction) SetBuilderOnTriggers(triggers []actions.Trigger)

func (*CreateContactAction) SetBuilderOnValidators

func (action *CreateContactAction) SetBuilderOnValidators(validators []actions.Validator)

func (*CreateContactAction) SetEmailAddress

func (action *CreateContactAction) SetEmailAddress(emailAddress string) *CreateContactAction

SetEmailAddress sets the EmailAddress while editing the Contact ent

func (*CreateContactAction) SetFavorite

func (action *CreateContactAction) SetFavorite(favorite bool) *CreateContactAction

SetFavorite sets the Favorite while editing the Contact ent

func (*CreateContactAction) SetFirstName

func (action *CreateContactAction) SetFirstName(firstName string) *CreateContactAction

SetFirstName sets the FirstName while editing the Contact ent

func (*CreateContactAction) SetLastName

func (action *CreateContactAction) SetLastName(lastName string) *CreateContactAction

SetLastName sets the LastName while editing the Contact ent

func (*CreateContactAction) SetNilableFavorite

func (action *CreateContactAction) SetNilableFavorite(favorite *bool) *CreateContactAction

SetNilableFavorite sets the Favorite while editing the Contact ent

func (*CreateContactAction) SetNilableNumberOfCalls

func (action *CreateContactAction) SetNilableNumberOfCalls(numberOfCalls *int) *CreateContactAction

SetNilableNumberOfCalls sets the NumberOfCalls while editing the Contact ent

func (*CreateContactAction) SetNilablePi

func (action *CreateContactAction) SetNilablePi(pi *float64) *CreateContactAction

SetNilablePi sets the Pi while editing the Contact ent

func (*CreateContactAction) SetNumberOfCalls

func (action *CreateContactAction) SetNumberOfCalls(numberOfCalls int) *CreateContactAction

SetNumberOfCalls sets the NumberOfCalls while editing the Contact ent

func (*CreateContactAction) SetPi

func (action *CreateContactAction) SetPi(pi float64) *CreateContactAction

SetPi sets the Pi while editing the Contact ent

func (*CreateContactAction) SetUserID

func (action *CreateContactAction) SetUserID(userID string) *CreateContactAction

SetUserID sets the UserID while editing the Contact ent

func (*CreateContactAction) SetUserIDBuilder

func (action *CreateContactAction) SetUserIDBuilder(builder ent.MutationBuilder) *CreateContactAction

SetUserIDBuilder sets the UserID while editing the Contact ent

func (*CreateContactAction) Validate

func (action *CreateContactAction) Validate() error

Validate returns an error if the current state of the action is not valid

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL