Struct prost_codegen::google::protobuf::compiler::Version
[−]
[src]
pub struct Version {
pub major: Option<i32>,
pub minor: Option<i32>,
pub patch: Option<i32>,
pub suffix: Option<String>,
}The version number of protocol compiler.
Fields
major: Option<i32>
minor: Option<i32>
patch: Option<i32>
suffix: Option<String>
A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should be empty for mainline stable releases.
Methods
impl Version[src]
fn major(&mut self) -> &mut i32
fn minor(&mut self) -> &mut i32
fn patch(&mut self) -> &mut i32
fn suffix(&mut self) -> &mut String
Trait Implementations
impl Clone for Version[src]
fn clone(&self) -> Version
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