pub struct PredictedItem {
pub item_id: Option<String>,
pub score: Option<f64>,
}
Expand description
An object that identifies an item.
The and APIs return a list of PredictedItem
s.
Fields§
§item_id: Option<String>
The recommended item ID.
score: Option<f64>
A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.
Trait Implementations§
Source§impl Clone for PredictedItem
impl Clone for PredictedItem
Source§fn clone(&self) -> PredictedItem
fn clone(&self) -> PredictedItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PredictedItem
impl Debug for PredictedItem
Source§impl Default for PredictedItem
impl Default for PredictedItem
Source§fn default() -> PredictedItem
fn default() -> PredictedItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PredictedItem
impl<'de> Deserialize<'de> for PredictedItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredictedItem
impl PartialEq for PredictedItem
impl StructuralPartialEq for PredictedItem
Auto Trait Implementations§
impl Freeze for PredictedItem
impl RefUnwindSafe for PredictedItem
impl Send for PredictedItem
impl Sync for PredictedItem
impl Unpin for PredictedItem
impl UnwindSafe for PredictedItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more