pub struct PredictResponse {
pub outputs: HashMap<String, Value>,
pub usage: Usage,
pub model: Model,
pub status: PredictStatus,
pub metadata: HashMap<String, String>,
}Expand description
Runtime-neutral prediction response.
Fields§
§outputs: HashMap<String, Value>Named outputs returned by the serving runtime.
usage: UsageToken and compute usage counters.
model: ModelModel that served the request.
status: PredictStatusPrediction status.
metadata: HashMap<String, String>Response metadata such as model version or finish reason.
Trait Implementations§
Source§impl Clone for PredictResponse
impl Clone for PredictResponse
Source§fn clone(&self) -> PredictResponse
fn clone(&self) -> PredictResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PredictResponse
impl Debug for PredictResponse
Source§impl Default for PredictResponse
impl Default for PredictResponse
Source§impl<'de> Deserialize<'de> for PredictResponse
impl<'de> Deserialize<'de> for PredictResponse
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 RequestResponse<PredictRequest, PredictResponse> for Echo
impl RequestResponse<PredictRequest, PredictResponse> for Echo
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
input: PredictRequest,
) -> Pin<Box<dyn Future<Output = AppResult<PredictResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
input: PredictRequest,
) -> Pin<Box<dyn Future<Output = AppResult<PredictResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the request and return a single response.
Auto Trait Implementations§
impl Freeze for PredictResponse
impl RefUnwindSafe for PredictResponse
impl Send for PredictResponse
impl Sync for PredictResponse
impl Unpin for PredictResponse
impl UnsafeUnpin for PredictResponse
impl UnwindSafe for PredictResponse
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