#[non_exhaustive]pub struct DynamicRetrievalConfiguration {
pub predictor: Option<DynamicRetrievalPredictor>,
/* private fields */
}Available on crate feature
grounded-generation-service only.Expand description
Describes the options to customize dynamic retrieval.
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.predictor: Option<DynamicRetrievalPredictor>Specification for the predictor for dynamic retrieval.
Implementations§
Source§impl DynamicRetrievalConfiguration
impl DynamicRetrievalConfiguration
pub fn new() -> Self
Sourcepub fn set_predictor<T>(self, v: T) -> Selfwhere
T: Into<DynamicRetrievalPredictor>,
pub fn set_predictor<T>(self, v: T) -> Selfwhere
T: Into<DynamicRetrievalPredictor>,
Sourcepub fn set_or_clear_predictor<T>(self, v: Option<T>) -> Selfwhere
T: Into<DynamicRetrievalPredictor>,
pub fn set_or_clear_predictor<T>(self, v: Option<T>) -> Selfwhere
T: Into<DynamicRetrievalPredictor>,
Sets or clears the value of predictor.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::generate_grounded_content_request::dynamic_retrieval_configuration::DynamicRetrievalPredictor;
let x = DynamicRetrievalConfiguration::new().set_or_clear_predictor(Some(DynamicRetrievalPredictor::default()/* use setters */));
let x = DynamicRetrievalConfiguration::new().set_or_clear_predictor(None::<DynamicRetrievalPredictor>);Trait Implementations§
Source§impl Clone for DynamicRetrievalConfiguration
impl Clone for DynamicRetrievalConfiguration
Source§fn clone(&self) -> DynamicRetrievalConfiguration
fn clone(&self) -> DynamicRetrievalConfiguration
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 DynamicRetrievalConfiguration
impl Default for DynamicRetrievalConfiguration
Source§fn default() -> DynamicRetrievalConfiguration
fn default() -> DynamicRetrievalConfiguration
Returns the “default value” for a type. Read more
Source§impl PartialEq for DynamicRetrievalConfiguration
impl PartialEq for DynamicRetrievalConfiguration
Source§fn eq(&self, other: &DynamicRetrievalConfiguration) -> bool
fn eq(&self, other: &DynamicRetrievalConfiguration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DynamicRetrievalConfiguration
Auto Trait Implementations§
impl Freeze for DynamicRetrievalConfiguration
impl RefUnwindSafe for DynamicRetrievalConfiguration
impl Send for DynamicRetrievalConfiguration
impl Sync for DynamicRetrievalConfiguration
impl Unpin for DynamicRetrievalConfiguration
impl UnwindSafe for DynamicRetrievalConfiguration
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