Crate mz_proto

source ·
Expand description

Generated protobuf code and companion impls.

Modules§

Macros§

Structs§

Enums§

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

Constants§

Traits§

  • 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.
  • A trait that allows Self to be used as an entry in a Vec<Self> representing a Rust *Map<K, V>.
  • A trait that declares that Self::Proto is the default Protobuf representation for Self.
  • The symmetric counterpart of RustType, similar to what Into is to From.
  • 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.
  • 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§