#[non_exhaustive]pub struct StreamQueryReasoningEngineRequest {
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.StreamQuery][].
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 stream query. It is optional and defaults to “stream_query” if unspecified.
Implementations§
Source§impl StreamQueryReasoningEngineRequest
impl StreamQueryReasoningEngineRequest
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 = StreamQueryReasoningEngineRequest::new().set_class_method("example");Trait Implementations§
Source§impl Clone for StreamQueryReasoningEngineRequest
impl Clone for StreamQueryReasoningEngineRequest
Source§fn clone(&self) -> StreamQueryReasoningEngineRequest
fn clone(&self) -> StreamQueryReasoningEngineRequest
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 Default for StreamQueryReasoningEngineRequest
impl Default for StreamQueryReasoningEngineRequest
Source§fn default() -> StreamQueryReasoningEngineRequest
fn default() -> StreamQueryReasoningEngineRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for StreamQueryReasoningEngineRequest
impl PartialEq for StreamQueryReasoningEngineRequest
Source§fn eq(&self, other: &StreamQueryReasoningEngineRequest) -> bool
fn eq(&self, other: &StreamQueryReasoningEngineRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamQueryReasoningEngineRequest
Auto Trait Implementations§
impl Freeze for StreamQueryReasoningEngineRequest
impl RefUnwindSafe for StreamQueryReasoningEngineRequest
impl Send for StreamQueryReasoningEngineRequest
impl Sync for StreamQueryReasoningEngineRequest
impl Unpin for StreamQueryReasoningEngineRequest
impl UnwindSafe for StreamQueryReasoningEngineRequest
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