[][src]Struct tract_tensorflow::tfpb::tensorflow::VersionDef

pub struct VersionDef {
    pub producer: i32,
    pub min_consumer: i32,
    pub bad_consumers: Vec<i32>,
}

Version information for a piece of serialized data

There are different types of versions for each type of data (GraphDef, etc.), but they all have the same common shape described here.

Each consumer has "consumer" and "min_producer" versions (specified elsewhere). A consumer is allowed to consume this data if

producer >= min_producer consumer >= min_consumer consumer not in bad_consumers

Fields

producer: i32

The version of the code that produced this data.

min_consumer: i32

Any consumer below this version is not allowed to consume this data.

bad_consumers: Vec<i32>

Specific consumer versions which are disallowed (e.g. due to bugs).

Trait Implementations

impl Clone for VersionDef[src]

impl Debug for VersionDef[src]

impl Default for VersionDef[src]

impl Message for VersionDef[src]

impl PartialEq<VersionDef> for VersionDef[src]

impl StructuralPartialEq for VersionDef[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DynClone for T where
    T: Clone
[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.