#[non_exhaustive]pub struct RagEngineConfig {
pub name: String,
pub rag_managed_db_config: Option<RagManagedDbConfig>,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Config for RagEngine.
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: StringIdentifier. The name of the RagEngineConfig.
Format:
projects/{project}/locations/{location}/ragEngineConfig
rag_managed_db_config: Option<RagManagedDbConfig>The config of the RagManagedDb used by RagEngine.
Implementations§
Source§impl RagEngineConfig
impl RagEngineConfig
pub fn new() -> Self
Sourcepub fn set_rag_managed_db_config<T>(self, v: T) -> Selfwhere
T: Into<RagManagedDbConfig>,
pub fn set_rag_managed_db_config<T>(self, v: T) -> Selfwhere
T: Into<RagManagedDbConfig>,
Sets the value of rag_managed_db_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagManagedDbConfig;
let x = RagEngineConfig::new().set_rag_managed_db_config(RagManagedDbConfig::default()/* use setters */);Sourcepub fn set_or_clear_rag_managed_db_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RagManagedDbConfig>,
pub fn set_or_clear_rag_managed_db_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RagManagedDbConfig>,
Sets or clears the value of rag_managed_db_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagManagedDbConfig;
let x = RagEngineConfig::new().set_or_clear_rag_managed_db_config(Some(RagManagedDbConfig::default()/* use setters */));
let x = RagEngineConfig::new().set_or_clear_rag_managed_db_config(None::<RagManagedDbConfig>);Trait Implementations§
Source§impl Clone for RagEngineConfig
impl Clone for RagEngineConfig
Source§fn clone(&self) -> RagEngineConfig
fn clone(&self) -> RagEngineConfig
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 RagEngineConfig
impl Debug for RagEngineConfig
Source§impl Default for RagEngineConfig
impl Default for RagEngineConfig
Source§fn default() -> RagEngineConfig
fn default() -> RagEngineConfig
Returns the “default value” for a type. Read more
Source§impl Message for RagEngineConfig
impl Message for RagEngineConfig
Source§impl PartialEq for RagEngineConfig
impl PartialEq for RagEngineConfig
impl StructuralPartialEq for RagEngineConfig
Auto Trait Implementations§
impl Freeze for RagEngineConfig
impl RefUnwindSafe for RagEngineConfig
impl Send for RagEngineConfig
impl Sync for RagEngineConfig
impl Unpin for RagEngineConfig
impl UnwindSafe for RagEngineConfig
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