func (e *Export) IsService() bool {
	return e.Type == Service
}
IsService returns true if an export is for a service
package jwt
import (
	"fmt"
	"time"
)
type ResponseType string
const (
	ResponseTypeSingleton = "Singleton"
	ResponseTypeStream = "Stream"
	ResponseTypeChunked = "Chunked"
)
type ServiceLatency struct {
	Sampling int     `json:"sampling,omitempty"`
	Results  Subject `json:"results"`
}
func (sl *ServiceLatency) Validate(vr *ValidationResults) {
	if sl.Sampling < 1 || sl.Sampling > 100 {
		vr.AddError("sampling percentage needs to be between 1-100")
	}
	sl.Results.Validate(vr)
	if sl.Results.HasWildCards() {
		vr.AddError("results subject can not contain wildcards")
	}
}
type Export struct {
	Name         string          `json:"name,omitempty"`
	Subject      Subject         `json:"subject,omitempty"`
	Type         ExportType      `json:"type,omitempty"`
	TokenReq     bool            `json:"token_req,omitempty"`
	Revocations  RevocationList  `json:"revocations,omitempty"`
	ResponseType ResponseType    `json:"response_type,omitempty"`
	Latency      *ServiceLatency `json:"service_latency,omitempty"`
}