Struct prost_types::compiler::Version [−][src]
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.
Implementations
impl Version
[src][−]
pub fn major(&self) -> i32
[src][−]
Returns the value of major
, or the default value if major
is unset.
pub fn minor(&self) -> i32
[src][−]
Returns the value of minor
, or the default value if minor
is unset.
pub fn patch(&self) -> i32
[src][−]
Returns the value of patch
, or the default value if patch
is unset.
pub fn suffix(&self) -> &str
[src][−]
Returns the value of suffix
, or the default value if suffix
is unset.
Trait Implementations
impl Clone for Version
[src][+]
impl Debug for Version
[src][+]
impl Default for Version
[src][+]
impl Message for Version
[src][+]
impl PartialEq<Version> for Version
[src][+]
impl StructuralPartialEq for Version
[src]
Auto Trait Implementations
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,