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

Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.

Identifies the filesystem path to the original source .proto.

Identifies the starting offset in bytes in the generated code that relates to the identified object.

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]

Trait Implementations

impl Clone for Annotation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Annotation
[src]

Formats the value using the given formatter.

impl PartialEq for Annotation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.