func (fs FoundSubjects) LookupSubject(subject *v0.ObjectAndRelation) (FoundSubject, bool) {
	onrString := tuple.StringONR(subject)
	found, ok := fs.subjects[onrString]
	return found, ok
}
LookupSubject returns the FoundSubject for a matching subject, if any.
package membership
import (
	"fmt"
	v0 "github.com/authzed/authzed-go/proto/authzed/api/v0"
	"github.com/authzed/spicedb/pkg/tuple"
)
type MembershipSet struct {
	objectsAndRelations map[string]FoundSubjects
}
func (ms *MembershipSet) SubjectsByONR() map[string]FoundSubjects {
	return ms.objectsAndRelations
}
type FoundSubjects struct {
	subjects map[string]FoundSubject
}
func (fs FoundSubjects) ListFound() []FoundSubject {
	found := []FoundSubject{}
	for _, sub := range fs.subjects {
		found = append(found, sub)
	}
	return found
}