vacationresponse

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const URI jmap.URI = "urn:ietf:params:jmap:vacationresponse"

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability struct{}

The VacationResponse capability is an empty object

func (*Capability) New

func (m *Capability) New() jmap.Capability

func (*Capability) URI

func (m *Capability) URI() jmap.URI

type Get

type Get struct {
	Account jmap.ID `json:"accountId,omitempty"`

	IDs []jmap.ID `json:"ids,omitempty"`

	Properties []string `json:"properties,omitempty"`
}

Get vacation response details https://www.rfc-editor.org/rfc/rfc8621.html#section-8.1

func (*Get) Name

func (m *Get) Name() string

func (*Get) Requires

func (m *Get) Requires() []jmap.URI

type GetResponse

type GetResponse struct {
	Account jmap.ID `json:"accountId,omitempty"`

	State string `json:"state,omitempty"`

	List []*VacationResponse `json:"list,omitempty"`

	NotFound []jmap.ID `json:"notFound,omitempty"`
}

type Set

type Set struct {
	Account jmap.ID `json:"accountId,omitempty"`

	IfInState string `json:"ifInState,omitempty"`

	Create map[jmap.ID]*VacationResponse `json:"create,omitempty"`

	Update map[jmap.ID]jmap.Patch `json:"update,omitempty"`

	Destroy []jmap.ID `json:"destroy,omitempty"`
}

Create, update & modify vacation responses https://www.rfc-editor.org/rfc/rfc8621.html#section-8.2

func (*Set) Name

func (m *Set) Name() string

func (*Set) Requires

func (m *Set) Requires() []jmap.URI

type SetResponse

type SetResponse struct {
	Account jmap.ID `json:"accountId,omitempty"`

	OldState string `json:"oldState,omitempty"`

	NewState string `json:"newState,omitempty"`

	Created map[jmap.ID]*VacationResponse `json:"created,omitempty"`

	Updated map[jmap.ID]*VacationResponse `json:"updated,omitempty"`

	Destroyed []jmap.ID `json:"destroyed,omitempty"`

	NotCreated map[jmap.ID]*jmap.SetError `json:"notCreated,omitempty"`

	NotUpdated map[jmap.ID]*jmap.SetError `json:"notUpdated,omitempty"`

	NotDestroyed map[jmap.ID]*jmap.SetError `json:"notDestroyed,omitempty"`
}

type VacationResponse

type VacationResponse struct {
	ID string `json:"id,omitempty"`

	IsEnabled bool `json:"isEnabled,omitempty"`

	FromDate *time.Time `json:"fromDate,omitempty"`

	ToDate *time.Time `json:"toDate,omitempty"`

	Subject *string `json:"subject,omitempty"`

	TextBody *string `json:"textBody,omitempty"`

	HTMLBody *string `json:"htmlBody,omitempty"`
}

Automatic reply when a message is delivered to the mail store https://www.rfc-editor.org/rfc/rfc8621.html#section-8

func (*VacationResponse) MarshalJson added in v0.4.2

func (v *VacationResponse) MarshalJson() ([]byte, error)

Jump to

Keyboard shortcuts

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