#[non_exhaustive]pub struct DedicatedInfrastructure {
pub mode: Option<Mode>,
pub autoscaling_spec: Option<AutoscalingSpec>,
/* private fields */
}Expand description
Represents dedicated infrastructure for the index.
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.mode: Option<Mode>Optional. Mode of the dedicated infrastructure.
autoscaling_spec: Option<AutoscalingSpec>Optional. Autoscaling specification.
Implementations§
Source§impl DedicatedInfrastructure
impl DedicatedInfrastructure
pub fn new() -> Self
Sourcepub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
Sets or clears the value of mode.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::dedicated_infrastructure::Mode;
let x0 = DedicatedInfrastructure::new().set_or_clear_mode(Some(Mode::StorageOptimized));
let x1 = DedicatedInfrastructure::new().set_or_clear_mode(Some(Mode::PerformanceOptimized));
let x_none = DedicatedInfrastructure::new().set_or_clear_mode(None::<Mode>);Sourcepub fn set_autoscaling_spec<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingSpec>,
pub fn set_autoscaling_spec<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingSpec>,
Sets the value of autoscaling_spec.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::dedicated_infrastructure::AutoscalingSpec;
let x = DedicatedInfrastructure::new().set_autoscaling_spec(AutoscalingSpec::default()/* use setters */);Sourcepub fn set_or_clear_autoscaling_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingSpec>,
pub fn set_or_clear_autoscaling_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingSpec>,
Sets or clears the value of autoscaling_spec.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::dedicated_infrastructure::AutoscalingSpec;
let x = DedicatedInfrastructure::new().set_or_clear_autoscaling_spec(Some(AutoscalingSpec::default()/* use setters */));
let x = DedicatedInfrastructure::new().set_or_clear_autoscaling_spec(None::<AutoscalingSpec>);Trait Implementations§
Source§impl Clone for DedicatedInfrastructure
impl Clone for DedicatedInfrastructure
Source§fn clone(&self) -> DedicatedInfrastructure
fn clone(&self) -> DedicatedInfrastructure
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 DedicatedInfrastructure
impl Debug for DedicatedInfrastructure
Source§impl Default for DedicatedInfrastructure
impl Default for DedicatedInfrastructure
Source§fn default() -> DedicatedInfrastructure
fn default() -> DedicatedInfrastructure
Returns the “default value” for a type. Read more
Source§impl Message for DedicatedInfrastructure
impl Message for DedicatedInfrastructure
Source§impl PartialEq for DedicatedInfrastructure
impl PartialEq for DedicatedInfrastructure
impl StructuralPartialEq for DedicatedInfrastructure
Auto Trait Implementations§
impl Freeze for DedicatedInfrastructure
impl RefUnwindSafe for DedicatedInfrastructure
impl Send for DedicatedInfrastructure
impl Sync for DedicatedInfrastructure
impl Unpin for DedicatedInfrastructure
impl UnsafeUnpin for DedicatedInfrastructure
impl UnwindSafe for DedicatedInfrastructure
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