pub struct DeployServiceArgs {Show 13 fields
pub path: Option<String>,
pub service_name: Option<String>,
pub provider: Option<String>,
pub machine_type: Option<String>,
pub region: Option<String>,
pub port: Option<u16>,
pub is_public: bool,
pub cpu: Option<String>,
pub memory: Option<String>,
pub min_instances: Option<i32>,
pub max_instances: Option<i32>,
pub preview_only: bool,
pub secret_keys: Option<Vec<SecretKeyInput>>,
}Expand description
Arguments for the deploy service tool
Fields§
§path: Option<String>Optional: specific subdirectory/service to deploy (for monorepos)
service_name: Option<String>Optional: override service name (default: derived from directory name)
provider: Option<String>Optional: override recommended provider (gcp, hetzner, azure)
machine_type: Option<String>Optional: override machine type selection
region: Option<String>Optional: override region selection
port: Option<u16>Optional: override detected port
is_public: boolWhether to make the service publicly accessible (default: false for safety) Internal services can only be accessed within the cluster/network
cpu: Option<String>Optional: CPU allocation (for GCP Cloud Run / Azure ACA)
memory: Option<String>Optional: Memory allocation (for GCP Cloud Run / Azure ACA)
min_instances: Option<i32>Optional: min instances/replicas
max_instances: Option<i32>Optional: max instances/replicas
preview_only: boolIf true (default), show recommendation but don’t deploy yet If false with settings, deploy immediately
secret_keys: Option<Vec<SecretKeyInput>>Optional: environment variable keys to set during deployment. For secrets (is_secret=true), values are collected via terminal prompt. For non-secrets, include the value directly.
Trait Implementations§
Source§impl Debug for DeployServiceArgs
impl Debug for DeployServiceArgs
Source§impl<'de> Deserialize<'de> for DeployServiceArgs
impl<'de> Deserialize<'de> for DeployServiceArgs
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>,
Auto Trait Implementations§
impl Freeze for DeployServiceArgs
impl RefUnwindSafe for DeployServiceArgs
impl Send for DeployServiceArgs
impl Sync for DeployServiceArgs
impl Unpin for DeployServiceArgs
impl UnsafeUnpin for DeployServiceArgs
impl UnwindSafe for DeployServiceArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more