pub struct ParsedSchema { /* private fields */ }Expand description
The parsed, indexed form of a FileDescriptorSet.
Owns a DescriptorPool and the fully-qualified name of the root message.
Implementations§
Source§impl ParsedSchema
impl ParsedSchema
Sourcepub fn root_descriptor(&self) -> Option<MessageDescriptor>
pub fn root_descriptor(&self) -> Option<MessageDescriptor>
Return the MessageDescriptor for the root message, or None for an
empty schema (no-schema mode).
Sourcepub fn get_descriptor(&self, fqn: &str) -> Option<MessageDescriptor>
pub fn get_descriptor(&self, fqn: &str) -> Option<MessageDescriptor>
Look up a message descriptor by fully-qualified name (no leading dot).
Sourcepub fn pool(&self) -> &DescriptorPool
pub fn pool(&self) -> &DescriptorPool
Access the underlying descriptor pool.
Auto Trait Implementations§
impl Freeze for ParsedSchema
impl RefUnwindSafe for ParsedSchema
impl Send for ParsedSchema
impl Sync for ParsedSchema
impl Unpin for ParsedSchema
impl UnsafeUnpin for ParsedSchema
impl UnwindSafe for ParsedSchema
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