#[non_exhaustive]pub struct DirectRawPredictRequest {
pub endpoint: String,
pub method_name: String,
pub input: Bytes,
/* private fields */
}Expand description
Request message for PredictionService.DirectRawPredict.
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.endpoint: StringRequired. The name of the Endpoint requested to serve the prediction.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
method_name: StringFully qualified name of the API method being invoked to perform predictions.
Format:
/namespace.Service/Method/
Example:
/tensorflow.serving.PredictionService/Predict
input: BytesThe prediction input.
Implementations§
Trait Implementations§
Source§impl Clone for DirectRawPredictRequest
impl Clone for DirectRawPredictRequest
Source§fn clone(&self) -> DirectRawPredictRequest
fn clone(&self) -> DirectRawPredictRequest
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 DirectRawPredictRequest
impl Debug for DirectRawPredictRequest
Source§impl Default for DirectRawPredictRequest
impl Default for DirectRawPredictRequest
Source§fn default() -> DirectRawPredictRequest
fn default() -> DirectRawPredictRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectRawPredictRequestwhere
DirectRawPredictRequest: Default,
impl<'de> Deserialize<'de> for DirectRawPredictRequestwhere
DirectRawPredictRequest: 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 DirectRawPredictRequest
impl Message for DirectRawPredictRequest
Source§impl PartialEq for DirectRawPredictRequest
impl PartialEq for DirectRawPredictRequest
Source§impl Serialize for DirectRawPredictRequest
impl Serialize for DirectRawPredictRequest
impl StructuralPartialEq for DirectRawPredictRequest
Auto Trait Implementations§
impl !Freeze for DirectRawPredictRequest
impl RefUnwindSafe for DirectRawPredictRequest
impl Send for DirectRawPredictRequest
impl Sync for DirectRawPredictRequest
impl Unpin for DirectRawPredictRequest
impl UnwindSafe for DirectRawPredictRequest
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