function

OneOf

OneOf matches any configured finite value of one scalar type.

Arguments

ArgumentTypeDescription
referenceReferenceThe reference value.
values[]ValueThe values value.

Returns

The declared result.

Condition

Full signature

func OneOf[Value ConditionScalar]( reference Reference, values ...Value, ) Condition

Source field/condition.go:35

Related types

  • ConditionScalar

    ConditionScalar is the finite scalar vocabulary accepted by condition predicates.

  • Reference

    Reference is an immutable field selector. Its dot-separated path names stored fields through non-repeated groups or named tabs, excluding presentation wrappers and repeated row selectors. Each use resolves in its own field scope.

  • Condition

    Condition is an immutable, deterministic presentation expression. It never grants access or removes a hidden value from a document.