Struct google_ondemandscanning1::api::Version[][src]

pub struct Version {
    pub epoch: Option<i32>,
    pub full_name: Option<String>,
    pub inclusive: Option<bool>,
    pub kind: Option<String>,
    pub name: Option<String>,
    pub revision: Option<String>,
}

Version contains structured information about the version of a package.

This type is not used in any activity, and only used as part of another schema.

Fields

epoch: Option<i32>

Used to correct mistakes in the version numbering scheme.

full_name: Option<String>

Human readable version string. This string is of the form :- and is only set when kind is NORMAL.

inclusive: Option<bool>

Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.

kind: Option<String>

Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

name: Option<String>

Required only when version kind is NORMAL. The main part of the version name.

revision: Option<String>

The iteration of the package build from the above version.

Trait Implementations

impl Clone for Version[src]

impl Debug for Version[src]

impl Default for Version[src]

impl<'de> Deserialize<'de> for Version[src]

impl Part for Version[src]

impl Serialize 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]

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.