You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[doc = "Builder for the [Inference Inference API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/post-inference-api.html)\n\nPerform inference"]
661
+
#[derive(Clone,Debug)]
662
+
pubstructInferenceInference<'a,'b,B>{
663
+
transport:&'aTransport,
664
+
parts:InferenceInferenceParts<'b>,
665
+
body:Option<B>,
666
+
error_trace:Option<bool>,
667
+
filter_path:Option<&'b[&'bstr]>,
668
+
headers:HeaderMap,
669
+
human:Option<bool>,
670
+
pretty:Option<bool>,
671
+
request_timeout:Option<Duration>,
672
+
source:Option<&'bstr>,
673
+
}
674
+
impl<'a,'b,B>InferenceInference<'a,'b,B>
675
+
where
676
+
B:Body,
677
+
{
678
+
#[doc = "Creates a new instance of [InferenceInference] with the specified API parts"]
#[doc = "Return human readable values for statistics."]
728
+
pubfnhuman(mutself,human:bool) -> Self{
729
+
self.human = Some(human);
730
+
self
731
+
}
732
+
#[doc = "Pretty format the returned JSON response."]
733
+
pubfnpretty(mutself,pretty:bool) -> Self{
734
+
self.pretty = Some(pretty);
735
+
self
736
+
}
737
+
#[doc = "Sets a request timeout for this API call.\n\nThe timeout is applied from when the request starts connecting until the response body has finished."]
#[doc = "[Inference Put API](https://www.elastic.co/guide/en/elasticsearch/reference/9.0/put-inference-api.html)\n\nConfigure an inference endpoint for use in the Inference API"]
0 commit comments