func (w *WorklogItem) Subject() string {
	return w.Details.Subject()
}
Subject returns the human readable subject of this WorklogItem.
package apitypes
import (
	"errors"
	"fmt"
	"github.com/dchest/blake2b"
	"github.com/manifoldco/go-base32"
	"github.com/manifoldco/torus-cli/identity"
	"github.com/manifoldco/torus-cli/pathexp"
	"github.com/manifoldco/torus-cli/primitive"
)
type WorklogType byte
const (
	SecretRotateWorklogType WorklogType = 1 << iota
	MissingKeypairsWorklogType
	InviteApproveWorklogType
	UserKeyringMembersWorklogType
	MachineKeyringMembersWorklogType
	AnyWorklogType WorklogType = 0xff
)
var ErrIncorrectWorklogIDLen = errors.New("Incorrect worklog ID length")
const worklogIDLen = 9
type WorklogID [worklogIDLen]byte
func DecodeWorklogIDFromString(raw string) (WorklogID, error) {
	id := WorklogID{}
	buf, err := base32.DecodeString(raw)
	if err != nil {
		return id, err
	}
	if len(buf) != worklogIDLen {
		return id, ErrIncorrectWorklogIDLen
	}
	copy(id[:], buf)
	return id, nil
}
func (id WorklogID) String() string {
	return base32.EncodeToString(id[:])
}
func (id WorklogID) Type() WorklogType {
	return WorklogType(id[0])
}
type WorklogItem struct {
	ID *WorklogID `json:"id"`
	Details WorklogDetails `json:"details"`
}