func (r *Record) AddObjectVersionFilter(m Match, v *pkg.Version) {
	r.addObjectReservedFilter(m, fKeyObjVersion, v)
}
AddObjectVersionFilter adds filter by object version.
package eacl
import (
	"crypto/ecdsa"
	"fmt"
	"github.com/nspcc-dev/neofs-api-go/pkg"
	cid "github.com/nspcc-dev/neofs-api-go/pkg/container/id"
	"github.com/nspcc-dev/neofs-api-go/pkg/object"
	"github.com/nspcc-dev/neofs-api-go/pkg/owner"
	v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
)
type Record struct {
	action    Action
	operation Operation
	filters   []*Filter
	targets   []*Target
}
func (r Record) Targets() []*Target {
	return r.targets
}
func (r *Record) SetTargets(targets ...*Target) {
	r.targets = targets
}
func (r Record) Filters() []*Filter {
	return r.filters
}
func (r Record) Operation() Operation {
	return r.operation
}
func (r *Record) SetOperation(operation Operation) {
	r.operation = operation
}
func (r Record) Action() Action {
	return r.action
}
func (r *Record) SetAction(action Action) {
	r.action = action
}
func (r *Record) AddTarget(role Role, keys ...ecdsa.PublicKey) {
	AddFormedTarget(r, role, keys...)
}
func AddRecordTarget(r *Record, t *Target) {
	r.SetTargets(append(r.Targets(), t)...)
}
func AddFormedTarget(r *Record, role Role, keys ...ecdsa.PublicKey) {
	t := NewTarget()
	t.SetRole(role)
	SetTargetECDSAKeys(t, ecdsaKeysToPtrs(keys)...)
	AddRecordTarget(r, t)
}
func (r *Record) addFilter(from FilterHeaderType, m Match, keyTyp filterKeyType, key string, val fmt.Stringer) {
	filter := &Filter{
		from: from,
		key: filterKey{
			typ: keyTyp,
			str: key,
		},
		matcher: m,
		value:   val,
	}
	r.filters = append(r.filters, filter)
}
func (r *Record) addObjectFilter(m Match, keyTyp filterKeyType, key string, val fmt.Stringer) {
	r.addFilter(HeaderFromObject, m, keyTyp, key, val)
}
func (r *Record) addObjectReservedFilter(m Match, typ filterKeyType, val fmt.Stringer) {
	r.addObjectFilter(m, typ, "", val)
}
func (r *Record) AddFilter(from FilterHeaderType, matcher Match, name, value string) {
	r.addFilter(from, matcher, 0, name, staticStringer(value))
}
func (r *Record) AddObjectAttributeFilter(m Match, key, value string) {
	r.addObjectFilter(m, 0, key, staticStringer(value))
}