Struct protobuf_parser::FileDescriptor
[−]
[src]
pub struct FileDescriptor { pub import_paths: Vec<String>, pub package: String, pub syntax: Syntax, pub messages: Vec<Message>, pub enums: Vec<Enumeration>, pub extensions: Vec<Extension>, }
A File descriptor representing a whole .proto file
Fields
import_paths: Vec<String>
Imports
package: String
Package
syntax: Syntax
Protobuf Syntax
messages: Vec<Message>
Top level messages
enums: Vec<Enumeration>
Enums
extensions: Vec<Extension>
Extensions
Methods
impl FileDescriptor
[src]
pub fn parse<S: AsRef<[u8]>>(file: S) -> Result<Self, IError>
[src]
Parses a .proto file content into a FileDescriptor
Trait Implementations
impl Debug for FileDescriptor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for FileDescriptor
[src]
fn default() -> FileDescriptor
[src]
Returns the "default value" for a type. Read more
impl Clone for FileDescriptor
[src]
fn clone(&self) -> FileDescriptor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more