[][src]Struct tensorflow_proto::tensorflow::contrib::proto::ExtraFields

pub struct ExtraFields {
    pub string_value: Option<String>,
    pub bool_value: Option<bool>,
}

Message containing fields with field numbers higher than any field above. An instance of this message is prepended to each binary message in the test to exercise the code path that handles fields encoded out of order of field number.

Fields

string_value: Option<String>bool_value: Option<bool>

Implementations

impl ExtraFields[src]

pub fn string_value(&self) -> &str[src]

Returns the value of string_value, or the default value if string_value is unset.

pub fn bool_value(&self) -> bool[src]

Returns the value of bool_value, or the default value if bool_value is unset.

Trait Implementations

impl Clone for ExtraFields[src]

impl Debug for ExtraFields[src]

impl Default for ExtraFields[src]

impl Message for ExtraFields[src]

impl PartialEq<ExtraFields> for ExtraFields[src]

impl StructuralPartialEq for ExtraFields[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.