pub struct DeployConfig {
pub replicas: u32,
pub resources: ResourceLimits,
pub restart_policy: RestartPolicy,
pub update_config: Option<UpdateConfig>,
}Expand description
部署配置
Fields§
§replicas: u32复制数量
resources: ResourceLimits资源限制
restart_policy: RestartPolicy重启策略
update_config: Option<UpdateConfig>滚动更新配置
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<'de> Deserialize<'de> for DeployConfig
impl<'de> Deserialize<'de> for DeployConfig
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 DeployConfig
impl RefUnwindSafe for DeployConfig
impl Send for DeployConfig
impl Sync for DeployConfig
impl Unpin for DeployConfig
impl UnsafeUnpin 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