Enum Voting
- Namespace
- DatabentoDotNet.Reference
- Assembly
- DatabentoDotNet.Reference.dll
The type of voting.
[JsonConverter(typeof(VotingJsonConverter))]
public enum Voting : byte
- Extension Methods
Fields
Limited = 76Limited voting (
L).Multiple = 77Multiple voting (
M).No = 78No voting (
N).Voting = 86Voting (
V).
Remarks
One of the nine closed reference enums: byte-backed, one character on the wire, and an unrecognised code is an error rather than an opaque value. ReferenceWireStrings carries the argument for all three.
Voting names both this type and its fourth member, which is upstream's spelling and is kept, for the reason MandVolu gives.
Upstream declares the field Option<Voting> (security.rs:283), but the
dictionary lists no blank for it. That is not a contradiction: an Option in serde
also covers a field that is absent or JSON null, which is a different thing
from the "A Blank value is possible" entry FRACCD, FRACTIONS and PAYTYPE
carry and the VOTING group does not. A Voting? response field therefore needs no
second converter — System.Text.Json answers a null token for a
Nullable<T> itself, without reaching VotingJsonConverter at
all. Only the empty string needs one, and only the two enums the dictionary says may be
blank can receive it.
Ported from databento-rs/src/reference/enums.rs:3456, and checked against the
VOTING group of the vendored corporate_actions.list_enums response, which reports
the same four codes.