func (r *Rights) setClientRights(cliUID string, rights *ttnpb.Rights) {
	if r.ClientRights == nil {
		r.ClientRights = make(map[string]*ttnpb.Rights)
	}
	r.ClientRights[cliUID] = rights
}
SetClientRights sets the rights for the given client.
package rights
import (
	"context"
	"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
)
type Rights struct {
	ApplicationRights  map[string]*ttnpb.Rights
	ClientRights       map[string]*ttnpb.Rights
	GatewayRights      map[string]*ttnpb.Rights
	OrganizationRights map[string]*ttnpb.Rights
	UserRights         map[string]*ttnpb.Rights
}
func (r *Rights) setApplicationRights(appUID string, rights *ttnpb.Rights) {
	if r.ApplicationRights == nil {
		r.ApplicationRights = make(map[string]*ttnpb.Rights)
	}
	r.ApplicationRights[appUID] = rights
}