#[non_exhaustive]pub struct Observation {
pub search_results: Vec<SearchResult>,
/* private fields */
}Available on crate features
conversational-search-service or session-service only.Expand description
Observation.
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.search_results: Vec<SearchResult>Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.
Implementations§
Source§impl Observation
impl Observation
pub fn new() -> Self
Sourcepub fn set_search_results<T, V>(self, v: T) -> Self
pub fn set_search_results<T, V>(self, v: T) -> Self
Sets the value of search_results.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::answer::step::action::observation::SearchResult;
let x = Observation::new()
.set_search_results([
SearchResult::default()/* use setters */,
SearchResult::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
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 Observation
impl Debug for Observation
Source§impl Default for Observation
impl Default for Observation
Source§fn default() -> Observation
fn default() -> Observation
Returns the “default value” for a type. Read more
Source§impl Message for Observation
impl Message for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnwindSafe for Observation
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