searchsnippet

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Get

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

	Filter interface{} `json:"filter,omitempty"`

	EmailIDs []jmap.ID `json:"emailIds,omitempty"`

	ReferenceIDs *jmap.ResultReference `json:"#emailIds,omitempty"`
}

Get search snippet details https://www.rfc-editor.org/rfc/rfc8621.html#section-5.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"`

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

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

type SearchSnippet

type SearchSnippet struct {
	Email jmap.ID `json:"emailId,omitempty"`

	Subject string `json:"subject,omitempty"`

	Preview string `json:"preview,omitempty"`
}

Search preview snippet https://www.rfc-editor.org/rfc/rfc8621.html#section-5

Jump to

Keyboard shortcuts

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