pub struct PredictionClient {
pub parent: Client,
pub id: String,
pub version: String,
pub urls: PredictionsUrls,
pub created_at: String,
pub status: PredictionStatus,
pub input: HashMap<String, Value>,
pub error: Option<String>,
pub logs: Option<String>,
}
Expand description
Helper struct for the prediction struct
Fields§
§parent: Client
§id: String
§version: String
§urls: PredictionsUrls
§created_at: String
§status: PredictionStatus
§input: HashMap<String, Value>
§error: Option<String>
§logs: Option<String>
Implementations§
source§impl PredictionClient
impl PredictionClient
sourcepub fn create<K: Serialize, V: Serialize>(
rep: Client,
version: String,
inputs: HashMap<K, V>
) -> Result<PredictionClient, Box<dyn Error>>
pub fn create<K: Serialize, V: Serialize>( rep: Client, version: String, inputs: HashMap<K, V> ) -> Result<PredictionClient, Box<dyn Error>>
Run the prediction of the model version with the given input
Auto Trait Implementations§
impl RefUnwindSafe for PredictionClient
impl Send for PredictionClient
impl Sync for PredictionClient
impl Unpin for PredictionClient
impl UnwindSafe for PredictionClient
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