Struct power_protobuf_lib::Protocol
source · pub struct Protocol {
pub imports: Vec<Import>,
pub package: Option<Package>,
pub syntax: Syntax,
pub messages: Vec<Message>,
pub enums: Vec<Enumeration>,
pub extensions: Vec<Extension>,
pub services: Vec<Service>,
pub options: Vec<ProtobufOption>,
pub decls: Vec<DeclIndex>,
pub deps: Deps,
}
Expand description
A File descriptor representing a whole .proto file
Fields§
§imports: Vec<Import>
Imports
package: Option<Package>
Package
syntax: Syntax
Protobuf Syntax
messages: Vec<Message>
Top level messages
enums: Vec<Enumeration>
Enums
extensions: Vec<Extension>
Extensions
services: Vec<Service>
Services
options: Vec<ProtobufOption>
Non-builtin options
decls: Vec<DeclIndex>
§deps: Deps
Implementations§
Trait Implementations§
source§impl ToTokens for Protocol
impl ToTokens for Protocol
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl !Send for Protocol
impl !Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.