pub struct ScaleComponentCommand {
pub component_ref: String,
pub component_id: ComponentId,
pub annotations: Option<HashMap<String, String>>,
pub max_instances: u32,
pub host_id: String,
pub config: Vec<String>,
}Fields§
§component_ref: StringImage reference for the component.
component_id: ComponentIdUnique identifier of the component to scale.
annotations: Option<HashMap<String, String>>Optional set of annotations used to describe the nature of this component scale command. For example, autonomous agents may wish to “tag” scale requests as part of a given deployment
max_instances: u32The maximum number of concurrent executing instances of this component. Setting this to 0 will
stop the component.
host_id: StringHost ID on which to scale this component
config: Vec<String>A list of named configs to use for this component. It is not required to specify a config. Configs are merged together before being given to the component, with values from the right-most config in the list taking precedence. For example, given ordered configs foo {a: 1, b: 2}, bar {b: 3, c: 4}, and baz {c: 5, d: 6}, the resulting config will be: {a: 1, b: 3, c: 5, d: 6}
Trait Implementations§
source§impl Clone for ScaleComponentCommand
impl Clone for ScaleComponentCommand
source§fn clone(&self) -> ScaleComponentCommand
fn clone(&self) -> ScaleComponentCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScaleComponentCommand
impl Debug for ScaleComponentCommand
source§impl Default for ScaleComponentCommand
impl Default for ScaleComponentCommand
source§fn default() -> ScaleComponentCommand
fn default() -> ScaleComponentCommand
source§impl<'de> Deserialize<'de> for ScaleComponentCommand
impl<'de> Deserialize<'de> for ScaleComponentCommand
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>,
source§impl PartialEq for ScaleComponentCommand
impl PartialEq for ScaleComponentCommand
source§fn eq(&self, other: &ScaleComponentCommand) -> bool
fn eq(&self, other: &ScaleComponentCommand) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ScaleComponentCommand
impl Serialize for ScaleComponentCommand
impl Eq for ScaleComponentCommand
impl StructuralPartialEq for ScaleComponentCommand
Auto Trait Implementations§
impl Freeze for ScaleComponentCommand
impl RefUnwindSafe for ScaleComponentCommand
impl Send for ScaleComponentCommand
impl Sync for ScaleComponentCommand
impl Unpin for ScaleComponentCommand
impl UnwindSafe for ScaleComponentCommand
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.