Class PublisherWireStrings
- Namespace
- DatabentoDotNet.Dbn.Publishers
- Assembly
- DatabentoDotNet.Dbn.dll
public static class PublisherWireStrings
- Inheritance
-
PublisherWireStrings
- Inherited Members
Remarks
Mechanically generated from publishers.rs (v0.68.0) by tools/generate-publishers.py -- see that type's own as_str/FromStr in the Rust source. No aliases: every wire string accepted by a TryParse{Enum} method here is also the one ToWireString emits for the matching value. One method per enum rather than a single overload distinguished only by its out parameter's type, matching WireStrings's convention -- an overload would make the ordinary out var call form ambiguous and fail to compile.
Methods
ToWireString(Dataset)
Converts value to its DBN wire string.
public static string ToWireString(this Dataset value)
Parameters
valueDataset
Returns
Exceptions
- ArgumentOutOfRangeException
valueis not a defined Dataset.
ToWireString(Publisher)
Converts value to its DBN wire string.
public static string ToWireString(this Publisher value)
Parameters
valuePublisher
Returns
Exceptions
- ArgumentOutOfRangeException
valueis not a defined Publisher.
ToWireString(Venue)
Converts value to its DBN wire string.
public static string ToWireString(this Venue value)
Parameters
valueVenue
Returns
Exceptions
- ArgumentOutOfRangeException
valueis not a defined Venue.
TryParseDataset(string?, out Dataset)
Tries to parse a DBN wire string into a Dataset. No aliases.
public static bool TryParseDataset(string? value, out Dataset result)
Parameters
Returns
TryParsePublisher(string?, out Publisher)
Tries to parse a DBN wire string into a Publisher. No aliases.
public static bool TryParsePublisher(string? value, out Publisher result)
Parameters
Returns
TryParseVenue(string?, out Venue)
Tries to parse a DBN wire string into a Venue. No aliases.
public static bool TryParseVenue(string? value, out Venue result)