Struct protobuf::reflect::MessageDescriptor[][src]

pub struct MessageDescriptor { /* fields omitted */ }
Expand description

Dynamic representation of message type.

Used for reflection.

Implementations

Get underlying DescriptorProto object.

Message name as specified in .proto file.

Get enums declared in this message.

Get a message descriptor for given message type

Messages declared in this messages.

FileDescriptor containing this message.

FileDescriptorProto containg this message type

pub fn is_map_entry(&self) -> bool

This message descriptor is a map entry.

New empty message.

Panics

If this message is a map entry message.

Shared immutable empty message.

Returns None for dynamic message.

Panics

If this message is a map entry message.

Check if two messages equal.

Panics

Is any message has different type than this descriptor.

Message name as given in .proto file

Fully qualified protobuf message name

Message field descriptors.

Nested oneofs

Find message field by protobuf field name

Note: protobuf field name might be different for Rust field name.

Find message field by field name or field JSON name

Find message field by field name

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.