Struct prost_codegen::google::protobuf::generated_code_info::Annotation
[−]
[src]
pub struct Annotation {
pub path: Vec<i32>,
pub source_file: Option<String>,
pub begin: Option<i32>,
pub end: Option<i32>,
}Fields
path: Vec<i32>
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
source_file: Option<String>
Identifies the filesystem path to the original source .proto.
begin: Option<i32>
Identifies the starting offset in bytes in the generated code that relates to the identified object.
end: Option<i32>
Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
Methods
impl Annotation[src]
fn source_file(&mut self) -> &mut String
fn begin(&mut self) -> &mut i32
fn end(&mut self) -> &mut i32
Trait Implementations
impl Clone for Annotation[src]
fn clone(&self) -> Annotation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Annotation[src]
impl PartialEq for Annotation[src]
fn eq(&self, __arg_0: &Annotation) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Annotation) -> bool
This method tests for !=.