pub struct ScaleResponse {
pub request_id: String,
pub accepted: bool,
pub current_replicas: u32,
pub target_replicas: u32,
pub instances: Vec<InstanceInfo>,
pub error: Option<String>,
}Expand description
Response from Box after processing a scale request.
Fields§
§request_id: StringRequest ID for correlation
accepted: boolWhether the scale operation was accepted
current_replicas: u32Current number of running instances
target_replicas: u32Target number of instances (may differ from requested if at capacity)
instances: Vec<InstanceInfo>Per-instance status
error: Option<String>Error message if not accepted
Trait Implementations§
Source§impl Clone for ScaleResponse
impl Clone for ScaleResponse
Source§fn clone(&self) -> ScaleResponse
fn clone(&self) -> ScaleResponse
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 ScaleResponse
impl Debug for ScaleResponse
Source§impl<'de> Deserialize<'de> for ScaleResponse
impl<'de> Deserialize<'de> for ScaleResponse
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 ScaleResponse
impl RefUnwindSafe for ScaleResponse
impl Send for ScaleResponse
impl Sync for ScaleResponse
impl Unpin for ScaleResponse
impl UnsafeUnpin for ScaleResponse
impl UnwindSafe for ScaleResponse
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