Struct protobuf::reflect::MessageDescriptor
source · [−]pub struct MessageDescriptor { /* private fields */ }
Expand description
Dynamic message type
Implementations
Get underlying DescriptorProto
object.
Get a message descriptor for given message type
New empty message
Message field descriptors.
Find message field by protobuf field name
Note: protobuf field name might be different for Rust field name.
pub fn get_field_by_name_or_json_name<'a>(
&'a self,
name: &str
) -> Option<&'a FieldDescriptor>
pub fn get_field_by_name_or_json_name<'a>(
&'a self,
name: &str
) -> Option<&'a FieldDescriptor>
Find message field by field name or field JSON name
Find message field by field name
Find field by name
Find field by number