Struct protobuf::reflect::FileDescriptor [−][src]
pub struct FileDescriptor { /* fields omitted */ }
Expand description
Reflection for objects defined in .proto
file (messages, enums, etc).
The object is refcounted: clone is shallow.
The equality performs pointer comparison: two clones of the same FileDescriptor
objects are equal, but two FileDescriptor
objects created from the same FileDescriptorProto
objects are not equal.
Implementations
Get top-level messages.
Get top-level enums.
Find message by name relative to the package.
Only search in the current file, not in any dependencies.
Find message by name relative to the package.
Only search in the current file, not in any dependencies.
Find message by fully-qualified name.
Only search in the current file, not in any dependencies.
Find enum by name fully-qualified name.
Only search in the current file, not in any dependencies.
pub fn new_dynamic(
proto: FileDescriptorProto,
dependencies: Vec<FileDescriptor>
) -> FileDescriptor
pub fn new_dynamic(
proto: FileDescriptorProto,
dependencies: Vec<FileDescriptor>
) -> FileDescriptor
Dynamic message created from FileDescriptorProto
without generated files.
Create a set of file descriptors from individual file descriptors.
.proto
data for this file.
Subset of dependencies which are public
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for FileDescriptor
impl Send for FileDescriptor
impl Sync for FileDescriptor
impl Unpin for FileDescriptor
impl !UnwindSafe for FileDescriptor
Blanket Implementations
Mutably borrows from an owned value. Read more