pub struct DeploymentSpec {Show 16 fields
pub id: String,
pub namespace: String,
pub account_id: Option<String>,
pub user_id: Option<String>,
pub routes: Vec<RouteRule>,
pub maintenance: bool,
pub vm: Option<VmSpec>,
pub scaling: ScalingPolicy,
pub health: HealthCheck,
pub upstreams: Vec<String>,
pub discovery: Option<DiscoverySpec>,
pub build: Option<BuildSpec>,
pub artifact: Option<ArtifactSpec>,
pub update: Option<UpdateSpec>,
pub auth: Option<AuthGate>,
pub site: Option<SiteSpec>,
}Fields§
§id: String§namespace: StringThe namespace wall this deployment sits behind. Omitted on the wire when
it is default — a single-tenant app-lb’s specs look exactly as they did
before namespaces — so read it through
namespace() rather than directly.
account_id: Option<String>The heyo account this deployment’s VMs are metered to, and the user who registered it. Set by the managed service; absent on a self-hosted app-lb.
user_id: Option<String>§routes: Vec<RouteRule>§maintenance: bool§vm: Option<VmSpec>§scaling: ScalingPolicy§health: HealthCheck§upstreams: Vec<String>§discovery: Option<DiscoverySpec>§build: Option<BuildSpec>§artifact: Option<ArtifactSpec>§update: Option<UpdateSpec>§auth: Option<AuthGate>§site: Option<SiteSpec>Implementations§
Source§impl DeploymentSpec
impl DeploymentSpec
Sourcepub fn is_static(&self) -> bool
pub fn is_static(&self) -> bool
Forwards to fixed upstreams. Not true for a site, which has no backends of any kind.
Sourcepub fn routes_summary(&self) -> String
pub fn routes_summary(&self) -> String
The routes as one column: secrets.local, *.apps.example.com/api, …
Sourcepub fn backend_summary(&self) -> String
pub fn backend_summary(&self) -> String
What traffic actually lands on: the image for a managed pool, the upstream list for a static one, the directory for a site.
Trait Implementations§
Source§impl Debug for DeploymentSpec
impl Debug for DeploymentSpec
Source§impl Default for DeploymentSpec
impl Default for DeploymentSpec
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
Auto Trait Implementations§
impl Freeze for DeploymentSpec
impl RefUnwindSafe for DeploymentSpec
impl Send for DeploymentSpec
impl Sync for DeploymentSpec
impl Unpin for DeploymentSpec
impl UnsafeUnpin 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