2d5d7dedae0ee0179a2d60d8dc057cf752961fbf — Tim Culverhouse 1 year, 2 months ago 9e97743 v0.3.0
account: add ID field

Add an ID field to the Account struct to serve as a helper for clients.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
1 files changed, 3 insertions(+), 0 deletions(-)

M account.go
M account.go => account.go +3 -0
@@ 9,6 9,9 @@ import "encoding/json"
// See draft-ietf-jmap-core-17, section 1.6.2 for details.
// The documentation is taked from draft-ietf-jmap-core-17, section 2.
type Account struct {
	// The ID of the account
	ID string `json:"-"`

	// A user-friendly string to show when presenting content from this
	// account, e.g. the email address representing the owner of the account.
	Name string `json:"name"`