#[non_exhaustive]pub struct DeployConfig {
pub dedicated_resources: Option<DedicatedResources>,
pub fast_tryout_enabled: bool,
pub system_labels: HashMap<String, String>,
/* private fields */
}Available on crate feature
model-garden-service only.Expand description
The deploy config to use for the deployment.
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.dedicated_resources: Option<DedicatedResources>Optional. The dedicated resources to use for the endpoint. If not set, the default resources will be used.
fast_tryout_enabled: boolOptional. If true, enable the QMT fast tryout feature for this model if possible.
system_labels: HashMap<String, String>Optional. System labels for Model Garden deployments. These labels are managed by Google and for tracking purposes only.
Implementations§
Source§impl DeployConfig
impl DeployConfig
pub fn new() -> Self
Sourcepub fn set_dedicated_resources<T>(self, v: T) -> Selfwhere
T: Into<DedicatedResources>,
pub fn set_dedicated_resources<T>(self, v: T) -> Selfwhere
T: Into<DedicatedResources>,
Sets the value of dedicated_resources.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::DedicatedResources;
let x = DeployConfig::new().set_dedicated_resources(DedicatedResources::default()/* use setters */);Sourcepub fn set_or_clear_dedicated_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<DedicatedResources>,
pub fn set_or_clear_dedicated_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<DedicatedResources>,
Sets or clears the value of dedicated_resources.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::DedicatedResources;
let x = DeployConfig::new().set_or_clear_dedicated_resources(Some(DedicatedResources::default()/* use setters */));
let x = DeployConfig::new().set_or_clear_dedicated_resources(None::<DedicatedResources>);Sourcepub fn set_fast_tryout_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_fast_tryout_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of fast_tryout_enabled.
§Example
ⓘ
let x = DeployConfig::new().set_fast_tryout_enabled(true);Sourcepub fn set_system_labels<T, K, V>(self, v: T) -> Self
pub fn set_system_labels<T, K, V>(self, v: T) -> Self
Sets the value of system_labels.
§Example
ⓘ
let x = DeployConfig::new().set_system_labels([
("key0", "abc"),
("key1", "xyz"),
]);Trait Implementations§
Source§impl Clone for DeployConfig
impl Clone for DeployConfig
Source§fn clone(&self) -> DeployConfig
fn clone(&self) -> DeployConfig
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 DeployConfig
impl Debug for DeployConfig
Source§impl Default for DeployConfig
impl Default for DeployConfig
Source§fn default() -> DeployConfig
fn default() -> DeployConfig
Returns the “default value” for a type. Read more
Source§impl Message for DeployConfig
impl Message for DeployConfig
Source§impl PartialEq for DeployConfig
impl PartialEq for DeployConfig
impl StructuralPartialEq for DeployConfig
Auto Trait Implementations§
impl Freeze for DeployConfig
impl RefUnwindSafe for DeployConfig
impl Send for DeployConfig
impl Sync for DeployConfig
impl Unpin for DeployConfig
impl UnwindSafe for DeployConfig
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