pub struct FileDescriptorProto {Show 13 fields
pub name: Option<String>,
pub package: Option<String>,
pub dependency: Vec<String>,
pub public_dependency: Vec<usize>,
pub weak_dependency: Vec<usize>,
pub option_dependency: Option<Vec<String>>,
pub message_type: Vec<DescriptorProto>,
pub enum_type: Vec<EnumDescriptorProto>,
pub service: Vec<ServiceDescriptorProto>,
pub extension: Vec<FieldDescriptorProto>,
pub options: Option<Options>,
pub syntax: Option<String>,
pub edition: Option<String>,
}Expand description
The root descriptor for one parsed .proto file.
Fields§
§name: Option<String>Not present in source; callers may set it.
package: Option<String>§dependency: Vec<String>§public_dependency: Vec<usize>§weak_dependency: Vec<usize>§option_dependency: Option<Vec<String>>import option "..." targets (edition 2024), when used.
message_type: Vec<DescriptorProto>§enum_type: Vec<EnumDescriptorProto>§service: Vec<ServiceDescriptorProto>§extension: Vec<FieldDescriptorProto>§options: Option<Options>§syntax: Option<String>proto2 or proto3 for syntax files; editions for edition
files.
edition: Option<String>EDITION_2023 or EDITION_2024 for edition files, absent
otherwise.
Trait Implementations§
Source§impl Clone for FileDescriptorProto
impl Clone for FileDescriptorProto
Source§impl Debug for FileDescriptorProto
impl Debug for FileDescriptorProto
Source§impl Default for FileDescriptorProto
impl Default for FileDescriptorProto
Source§impl PartialEq for FileDescriptorProto
impl PartialEq for FileDescriptorProto
Source§impl Serialize for FileDescriptorProto
impl Serialize for FileDescriptorProto
impl StructuralPartialEq for FileDescriptorProto
Auto Trait Implementations§
impl Forget for FileDescriptorProto
impl Freeze for FileDescriptorProto
impl RefUnwindSafe for FileDescriptorProto
impl Send for FileDescriptorProto
impl Sync for FileDescriptorProto
impl Unpin for FileDescriptorProto
impl UnsafeUnpin for FileDescriptorProto
impl UnwindSafe for FileDescriptorProto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more