pub struct Entry {
    pub predicted_label: Option<String>,
    pub item_count: Option<i64>,
}

Fields

predicted_label: Option<String>

The predicted label. For confidence_threshold > 0, we will also add an entry indicating the number of items under the confidence threshold.

item_count: Option<i64>

Number of items being predicted as this label.

Trait Implementations

source

impl Clone for Entry

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

source

impl Debug for Entry

Formats the value using the given formatter. Read more

source

impl Default for Entry

Returns the “default value” for a type. Read more

source

impl<'de> Deserialize<'de> for Entry

Deserialize this value from the given Serde deserializer. Read more

source

impl Serialize for Entry

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

Blanket Implementations

source

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

Gets the TypeId of self. Read more

source

impl<T> Borrow<T> for T where
    T: ?Sized

Immutably borrows from an owned value. Read more

source

impl<T> BorrowMut<T> for T where
    T: ?Sized

Mutably borrows from an owned value. Read more

source

impl<T> From<T> for T

Returns the argument unchanged.

source

impl<T> Instrument for T

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

source

impl<T, U> Into<U> for T where
    U: From<T>, 

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source

impl<T> ToOwned for T where
    T: Clone

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

The type returned in the event of a conversion error.

Performs the conversion.

source

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

The type returned in the event of a conversion error.

Performs the conversion.

source

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

source

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