Crate prost_types [−] [src]
Protocol Buffers well-known types.
Note that the documentation for the types defined in this crate are generated from the Protobuf definitions, so code examples are not in Rust.
See the Protobuf reference for more information about well-known types.
Modules
compiler | |
descriptor_proto | |
field | |
field_descriptor_proto | |
field_options | |
file_options | |
generated_code_info | |
method_options | |
source_code_info | |
uninterpreted_option | |
value |
Structs
Any |
|
Api |
Api is a light-weight descriptor for a protocol buffer service. |
DescriptorProto |
Describes a message type. |
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. |
Enum |
Enum type definition. |
EnumDescriptorProto |
Describes an enum type. |
EnumOptions | |
EnumValue |
Enum value definition. |
EnumValueDescriptorProto |
Describes a value within an enum. |
EnumValueOptions | |
Field |
A single field of a message type. |
FieldDescriptorProto |
Describes a field within a message. |
FieldMask |
|
FieldOptions | |
FileDescriptorProto |
Describes a complete .proto file. |
FileDescriptorSet |
The protocol compiler can output a FileDescriptorSet containing the .proto files it parses. |
FileOptions | |
GeneratedCodeInfo |
Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files. |
ListValue |
|
MessageOptions | |
Method |
Method represents a method of an api. |
MethodDescriptorProto |
Describes a method of a service. |
MethodOptions | |
Mixin |
Declares an API to be included in this API. The including API must redeclare all the methods from the included API, but documentation and options are inherited as follows: |
OneofDescriptorProto |
Describes a oneof. |
OneofOptions | |
Option |
A protocol buffer option, which can be attached to a message, field, enumeration, etc. |
ServiceDescriptorProto |
Describes a service. |
ServiceOptions | |
SourceCodeInfo |
Encapsulates information about the original source file from which a FileDescriptorProto was generated. |
SourceContext |
|
Struct |
|
Timestamp |
A Timestamp represents a point in time independent of any time zone or calendar, represented as seconds and fractions of seconds at nanosecond resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian Calendar which extends the Gregorian calendar backwards to year one. It is encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "smeared" so that no leap second table is needed for interpretation. Range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings. See https://www.ietf.org/rfc/rfc3339.txt. |
Type |
A protocol buffer message type. |
UninterpretedOption |
A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them. |
Value |
|
Enums
NullValue |
|
Syntax |
The syntax in which a protocol buffer element is defined. |