Expand description
Optional message field wrapper that provides ergonomic access.
MessageField<T> replaces Option<Box<T>> for optional/singular message
fields. It dereferences to a default instance when unset, avoiding the
Option<Box<M>> unwrapping ceremony that plagues prost-generated code.
Structs§
- Message
Field - A wrapper for optional message fields that provides transparent access to a default instance when the field is not set.
Traits§
- Default
Instance - Provides access to a lazily-initialized, immutable default instance of a type.