#[non_exhaustive]pub struct QueryReasoningEngineRequest {
pub name: String,
pub input: Option<Struct>,
pub class_method: String,
/* private fields */
}Available on crate feature
reasoning-engine-execution-service only.Expand description
Request message for [ReasoningEngineExecutionService.Query][].
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.name: StringRequired. The name of the ReasoningEngine resource to use.
Format:
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
input: Option<Struct>Optional. Input content provided by users in JSON object format. Examples include text query, function calling parameters, media bytes, etc.
class_method: StringOptional. Class method to be used for the query. It is optional and defaults to “query” if unspecified.
Implementations§
Source§impl QueryReasoningEngineRequest
impl QueryReasoningEngineRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_input<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_input<T>(self, v: Option<T>) -> Self
Sourcepub fn set_class_method<T: Into<String>>(self, v: T) -> Self
pub fn set_class_method<T: Into<String>>(self, v: T) -> Self
Sets the value of class_method.
§Example
ⓘ
let x = QueryReasoningEngineRequest::new().set_class_method("example");Trait Implementations§
Source§impl Clone for QueryReasoningEngineRequest
impl Clone for QueryReasoningEngineRequest
Source§fn clone(&self) -> QueryReasoningEngineRequest
fn clone(&self) -> QueryReasoningEngineRequest
Returns a duplicate 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 QueryReasoningEngineRequest
impl Debug for QueryReasoningEngineRequest
Source§impl Default for QueryReasoningEngineRequest
impl Default for QueryReasoningEngineRequest
Source§fn default() -> QueryReasoningEngineRequest
fn default() -> QueryReasoningEngineRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for QueryReasoningEngineRequest
Auto Trait Implementations§
impl Freeze for QueryReasoningEngineRequest
impl RefUnwindSafe for QueryReasoningEngineRequest
impl Send for QueryReasoningEngineRequest
impl Sync for QueryReasoningEngineRequest
impl Unpin for QueryReasoningEngineRequest
impl UnwindSafe for QueryReasoningEngineRequest
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