Crate mz_proto

Source
Expand description

Generated protobuf code and companion impls.

Modules§

chrono
Custom proptest::strategy::Strategy implementations and Protobuf types for the chrono fields used in the codebase.
tokio_postgres

Macros§

rust_type_id 🔒

Structs§

ProtoDuration
ProtoU128

Enums§

TryFromProtoError
An error thrown when trying to convert from a *.proto-generated type Proto$T to $T.

Traits§

IntoRustIfSome
Convenience syntax for trying to convert a Self value of type Option<U> to T if the value is Some(value), or returning TryFromProtoError::MissingField if the value is None.
ProtoMapEntry
A trait that allows Self to be used as an entry in a Vec<Self> representing a Rust *Map<K, V>.
ProtoRepr
A trait that declares that Self::Proto is the default Protobuf representation for Self.
ProtoType
The symmetric counterpart of RustType, similar to what Into is to From.
RustType
A trait for representing a Rust type Self as a value of type Proto for the purpose of serializing this value as (part of) a Protobuf message.
TryIntoIfSome
Convenience syntax for trying to convert a Self value of type Option<U> to T if the value is Some(value), or returning TryFromProtoError::MissingField if the value is None.

Functions§

any_duration
any_uuid
protobuf_roundtrip
Blanket command for testing if R can be converted to its corresponding ProtoType and back.