pub struct DeploymentConfig {
pub name: String,
pub provider: Arc<dyn Provider>,
pub weight: u32,
pub priority: u32,
pub max_concurrent: Option<u32>,
pub region: Option<String>,
}Expand description
Configuration for a single deployment (provider instance).
Fields§
§name: StringUnique name for this deployment
provider: Arc<dyn Provider>The underlying provider
weight: u32Weight for weighted routing (higher = more traffic)
priority: u32Priority for failover (lower = higher priority, used first)
max_concurrent: Option<u32>Maximum concurrent requests (None = unlimited)
region: Option<String>Optional region identifier
Trait Implementations§
Source§impl Clone for DeploymentConfig
impl Clone for DeploymentConfig
Source§fn clone(&self) -> DeploymentConfig
fn clone(&self) -> DeploymentConfig
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 moreAuto Trait Implementations§
impl Freeze for DeploymentConfig
impl !RefUnwindSafe for DeploymentConfig
impl Send for DeploymentConfig
impl Sync for DeploymentConfig
impl Unpin for DeploymentConfig
impl !UnwindSafe for DeploymentConfig
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