#[non_exhaustive]pub struct OptimizedConfig {
pub automatic_resources: Option<AutomaticResources>,
/* private fields */
}Available on crate feature
feature-online-store-admin-service only.Expand description
Configuration for FeatureViews created in Optimized FeatureOnlineStore.
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.automatic_resources: Option<AutomaticResources>Optional. A description of resources that the FeatureView uses, which to large degree are decided by Vertex AI, and optionally allows only a modest additional configuration. If min_replica_count is not set, the default value is 2. If max_replica_count is not set, the default value is 6. The max allowed replica count is 1000.
Implementations§
Source§impl OptimizedConfig
impl OptimizedConfig
pub fn new() -> Self
Sourcepub fn set_automatic_resources<T>(self, v: T) -> Selfwhere
T: Into<AutomaticResources>,
pub fn set_automatic_resources<T>(self, v: T) -> Selfwhere
T: Into<AutomaticResources>,
Sets the value of automatic_resources.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::AutomaticResources;
let x = OptimizedConfig::new().set_automatic_resources(AutomaticResources::default()/* use setters */);Sourcepub fn set_or_clear_automatic_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutomaticResources>,
pub fn set_or_clear_automatic_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutomaticResources>,
Sets or clears the value of automatic_resources.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::AutomaticResources;
let x = OptimizedConfig::new().set_or_clear_automatic_resources(Some(AutomaticResources::default()/* use setters */));
let x = OptimizedConfig::new().set_or_clear_automatic_resources(None::<AutomaticResources>);Trait Implementations§
Source§impl Clone for OptimizedConfig
impl Clone for OptimizedConfig
Source§fn clone(&self) -> OptimizedConfig
fn clone(&self) -> OptimizedConfig
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 OptimizedConfig
impl Debug for OptimizedConfig
Source§impl Default for OptimizedConfig
impl Default for OptimizedConfig
Source§fn default() -> OptimizedConfig
fn default() -> OptimizedConfig
Returns the “default value” for a type. Read more
Source§impl Message for OptimizedConfig
impl Message for OptimizedConfig
Source§impl PartialEq for OptimizedConfig
impl PartialEq for OptimizedConfig
impl StructuralPartialEq for OptimizedConfig
Auto Trait Implementations§
impl Freeze for OptimizedConfig
impl RefUnwindSafe for OptimizedConfig
impl Send for OptimizedConfig
impl Sync for OptimizedConfig
impl Unpin for OptimizedConfig
impl UnwindSafe for OptimizedConfig
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