[][src]Struct tensorflow_serving_client::classification::Class

pub struct Class {
    pub label: String,
    pub score: f32,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Generated files are compatible only with the same version of protobuf runtime.

Fields

label: Stringscore: f32unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Class[src]

pub fn new() -> Class[src]

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

pub fn clear_label(&mut self)[src]

pub fn set_label(&mut self, v: String)[src]

pub fn mut_label(&mut self) -> &mut String[src]

pub fn take_label(&mut self) -> String[src]

pub fn get_score(&self) -> f32[src]

pub fn clear_score(&mut self)[src]

pub fn set_score(&mut self, v: f32)[src]

Trait Implementations

impl Clear for Class[src]

impl Clone for Class[src]

impl Debug for Class[src]

impl Default for Class[src]

impl<'a> Default for &'a Class[src]

impl Message for Class[src]

impl PartialEq<Class> for Class[src]

impl ProtobufValue for Class[src]

impl StructuralPartialEq for Class[src]

Auto Trait Implementations

impl RefUnwindSafe for Class

impl Send for Class

impl Sync for Class

impl Unpin for Class

impl UnwindSafe for Class

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.