pub fn payload_for_value(
value: ScalarValue,
desc: &str,
long_string: bool,
) -> Option<NtPayload>Expand description
Wrap a resolved field value as a wire payload.
Regular fields are served as an NTScalar; the $ long-string form is
served as an NTScalarArray of Int8 holding the UTF-8 bytes (QSRV
long-string semantics). $ on a non-string value resolves to None.
Both the record-level payload_for and the provider-level
resolve_field_payload go through here, so the two stores cannot drift
in how they wrap.