Skip to main content

Module protobuf

Module protobuf 

Source
Expand description

The well-known types (google.protobuf), with their proto3 JSON mapping: FieldMask, Timestamp, Duration, Empty and the others.

They are pbjson-types’, except for three whose JSON form there isn’t quite proto3’s: FieldMask, written as one string of camel case paths, Timestamp, written in UTC with a Z, and Any, whose message’s fields sit next to its @type.

Re-exports§

pub use crate::rpc::Any;

Modules§

descriptor_proto
Nested message and enum types in DescriptorProto.
enum_descriptor_proto
Nested message and enum types in EnumDescriptorProto.
extension_range_options
Nested message and enum types in ExtensionRangeOptions.
feature_set
Nested message and enum types in FeatureSet.
feature_set_defaults
Nested message and enum types in FeatureSetDefaults.
field
Nested message and enum types in Field.
field_descriptor_proto
Nested message and enum types in FieldDescriptorProto.
field_options
Nested message and enum types in FieldOptions.
file_options
Nested message and enum types in FileOptions.
generated_code_info
Nested message and enum types in GeneratedCodeInfo.
method_options
Nested message and enum types in MethodOptions.
source_code_info
Nested message and enum types in SourceCodeInfo.
uninterpreted_option
Nested message and enum types in UninterpretedOption.
value

Structs§

Api
BoolValue
BytesValue
DescriptorProto
DoubleValue
Duration
Empty
Enum
EnumDescriptorProto
EnumOptions
EnumValue
EnumValueDescriptorProto
EnumValueOptions
ExtensionRangeOptions
FeatureSet
FeatureSetDefaults
Field
FieldDescriptorProto
FieldMask
A set of field paths (google.protobuf.FieldMask), such as the fields an update changes. The paths are the proto field names, such as size_gib; in JSON they are one string of camel case paths, such as "sizeGib,tags".
FieldOptions
FileDescriptorProto
FileDescriptorSet
FileOptions
FloatValue
GeneratedCodeInfo
Int32Value
Int64Value
ListValue
MessageOptions
Method
MethodDescriptorProto
MethodOptions
Mixin
OneofDescriptorProto
OneofOptions
Option
ServiceDescriptorProto
ServiceOptions
SourceCodeInfo
SourceContext
StringValue
Struct
Timestamp
A point in time (google.protobuf.Timestamp): seconds and nanoseconds since 1970-01-01T00:00:00Z. In JSON it is RFC 3339 in UTC, such as "2026-10-30T12:00:00.500Z", with 0, 3, 6 or 9 fractional digits.
Type
UInt32Value
UInt64Value
UninterpretedOption
Value

Enums§

Edition
NullValue
SymbolVisibility
Syntax