Module options

Module options 

Source

Structs§

Duration
A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like “day” or “month”. It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years.
ProtoOption
A struct representing a protobuf option. The proto_option helper makes building these much easier. For building OptionValues for options with a message type, try using the message_option macro or the message_value helper. For lists, use the list_value helper. For options that have enum values, you can use the enum_option macro or the enum_values_list helper.
Timestamp
A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.

Enums§

OptionValue
An enum representing values for protobuf options. For building OptionValues for options with a message type, try using the message_option macro or the message_value helper. For lists, use the list_value helper. For options that have enum values, you can use the enum_option macro or the enum_values_list helper.

Functions§

enum_values_list
A helper to build a list of enum values.
list_value
A helper to build a list of protobuf option values. Use enum_values_list for making a list of enum values.
message_value
A helper to build an OptionValue::Message. Used by the message_option macro to easily compose message option values.
proto_option
A helper to build a ProtoOption For building OptionValues for options with a message type, try using the message_option macro or the message_value helper. For lists, use the list_value helper. For options that have enum values, you can use the enum_option macro or the enum_values_list helper.