[][src]Struct prost_types::compiler::Version

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.

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.