#[non_exhaustive]pub struct DeploymentSpec {
pub env: Vec<EnvVar>,
pub secret_env: Vec<SecretEnvVar>,
/* private fields */
}Expand description
The specification of a Reasoning Engine 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.env: Vec<EnvVar>Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API.
secret_env: Vec<SecretEnvVar>Optional. Environment variables where the value is a secret in Cloud Secret Manager. To use this feature, add ‘Secret Manager Secret Accessor’ role (roles/secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.
Implementations§
Source§impl DeploymentSpec
impl DeploymentSpec
pub fn new() -> Self
Sourcepub fn set_secret_env<T, V>(self, v: T) -> Self
pub fn set_secret_env<T, V>(self, v: T) -> Self
Sets the value of secret_env.
Trait Implementations§
Source§impl Clone for DeploymentSpec
impl Clone for DeploymentSpec
Source§fn clone(&self) -> DeploymentSpec
fn clone(&self) -> DeploymentSpec
Returns a copy 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 DeploymentSpec
impl Debug for DeploymentSpec
Source§impl Default for DeploymentSpec
impl Default for DeploymentSpec
Source§fn default() -> DeploymentSpec
fn default() -> DeploymentSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeploymentSpecwhere
DeploymentSpec: Default,
impl<'de> Deserialize<'de> for DeploymentSpecwhere
DeploymentSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for DeploymentSpec
impl Message for DeploymentSpec
Source§impl PartialEq for DeploymentSpec
impl PartialEq for DeploymentSpec
Source§impl Serialize for DeploymentSpec
impl Serialize for DeploymentSpec
impl StructuralPartialEq for DeploymentSpec
Auto Trait Implementations§
impl Freeze for DeploymentSpec
impl RefUnwindSafe for DeploymentSpec
impl Send for DeploymentSpec
impl Sync for DeploymentSpec
impl Unpin for DeploymentSpec
impl UnwindSafe for DeploymentSpec
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