Trait protobuf_native::Message

source ·
pub trait Message: Message + MessageLite { }
Expand description

Abstract interface for protocol messages.

See also MessageLite, which contains most every-day operations. Message adds descriptors and reflection on top of that.

The methods of this class that have default implementations have default implementations based on reflection. Message classes which are optimized for speed will want to override these with faster implementations, but classes optimized for code size may be happy with keeping them. See the optimize_for option in descriptor.proto.

Users must not derive from this class. Only the protocol compiler and the internal library are allowed to create subclasses.

Implementors§