pub trait DescribeField<T> {
const FIELD_TYPE: FieldType<'static>;
const PACKED_TYPE: Option<&'static str> = None;
}
Expand description
A trait for a self-describing protobuf message field.
Required Associated Constants§
Sourceconst FIELD_TYPE: FieldType<'static>
const FIELD_TYPE: FieldType<'static>
The type of the field.
Provided Associated Constants§
Sourceconst PACKED_TYPE: Option<&'static str> = None
const PACKED_TYPE: Option<&'static str> = None
The type name of the field in a packed context.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.