pub struct PredictionPayload<K: Serialize, V: Serialize> {
pub version: String,
pub input: HashMap<K, V>,
}
Expand description
Used to interact with the Prediction Endpoints.
Fields§
§version: String
Version of the model used for the prediction
input: HashMap<K, V>
Input to the model
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for PredictionPayload<K, V>
impl<K, V> RefUnwindSafe for PredictionPayload<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for PredictionPayload<K, V>
impl<K, V> Sync for PredictionPayload<K, V>
impl<K, V> Unpin for PredictionPayload<K, V>
impl<K, V> UnwindSafe for PredictionPayload<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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