pub struct Deploy {
pub mode: Option<String>,
pub replicas: Option<u32>,
pub update_config: Option<UpdateConfig>,
pub rollback_config: Option<UpdateConfig>,
pub restart_policy: Option<RestartPolicy>,
pub resources: Option<Resources>,
pub labels: BTreeMap<String, String>,
}Expand description
docker’s deploy:, for isb stack deploy.
Fields§
§mode: Option<String>Only replicated.
replicas: Option<u32>Number of instances. Default 1. isb up handles at most 1.
update_config: Option<UpdateConfig>How a changed service is rolled out.
rollback_config: Option<UpdateConfig>How a rollback is rolled out. Default: like update_config.
restart_policy: Option<RestartPolicy>When the daemon restarts an instance whose app failed.
resources: Option<Resources>limits.cpus (whole CPUs) and limits.memory: the same as cpus and
mem_limit.
labels: BTreeMap<String, String>Labels for the service’s instances, merged over labels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Deploy
impl<'de> Deserialize<'de> for Deploy
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 JsonSchema for Deploy
impl JsonSchema for Deploy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Deploy
Auto Trait Implementations§
impl Freeze for Deploy
impl RefUnwindSafe for Deploy
impl Send for Deploy
impl Sync for Deploy
impl Unpin for Deploy
impl UnsafeUnpin for Deploy
impl UnwindSafe for Deploy
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