#[non_exhaustive]pub struct ExplainResponse {
pub explanations: Vec<Explanation>,
pub deployed_model_id: String,
pub predictions: Vec<Value>,
/* private fields */
}Expand description
Response message for PredictionService.Explain.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.explanations: Vec<Explanation>The explanations of the Model’s PredictResponse.predictions.
It has the same number of elements as instances to be explained.
deployed_model_id: StringID of the Endpoint’s DeployedModel that served this explanation.
predictions: Vec<Value>The predictions that are the output of the predictions call. Same as PredictResponse.predictions.
Implementations§
Source§impl ExplainResponse
impl ExplainResponse
pub fn new() -> Self
Sourcepub fn set_explanations<T, V>(self, v: T) -> Self
pub fn set_explanations<T, V>(self, v: T) -> Self
Sets the value of explanations.
Sourcepub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_model_id.
Sourcepub fn set_predictions<T, V>(self, v: T) -> Self
pub fn set_predictions<T, V>(self, v: T) -> Self
Sets the value of predictions.
Trait Implementations§
Source§impl Clone for ExplainResponse
impl Clone for ExplainResponse
Source§fn clone(&self) -> ExplainResponse
fn clone(&self) -> ExplainResponse
Returns a copy 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 ExplainResponse
impl Debug for ExplainResponse
Source§impl Default for ExplainResponse
impl Default for ExplainResponse
Source§fn default() -> ExplainResponse
fn default() -> ExplainResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExplainResponsewhere
ExplainResponse: Default,
impl<'de> Deserialize<'de> for ExplainResponsewhere
ExplainResponse: Default,
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 Message for ExplainResponse
impl Message for ExplainResponse
Source§impl PartialEq for ExplainResponse
impl PartialEq for ExplainResponse
Source§impl Serialize for ExplainResponse
impl Serialize for ExplainResponse
impl StructuralPartialEq for ExplainResponse
Auto Trait Implementations§
impl Freeze for ExplainResponse
impl RefUnwindSafe for ExplainResponse
impl Send for ExplainResponse
impl Sync for ExplainResponse
impl Unpin for ExplainResponse
impl UnwindSafe for ExplainResponse
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