pub struct ProductionVariantSummary {
pub current_instance_count: Option<i64>,
pub current_weight: Option<f32>,
pub deployed_images: Option<Vec<DeployedImage>>,
pub desired_instance_count: Option<i64>,
pub desired_weight: Option<f32>,
pub variant_name: String,
}Expand description
Describes weight and capacities for a production variant associated with an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities API and the endpoint status is Updating, you get different desired and current values.
Fields§
§current_instance_count: Option<i64>The number of instances associated with the variant.
current_weight: Option<f32>The weight associated with the variant.
deployed_images: Option<Vec<DeployedImage>>An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant.
desired_instance_count: Option<i64>The number of instances requested in the UpdateEndpointWeightsAndCapacities request.
desired_weight: Option<f32>The requested weight, as specified in the UpdateEndpointWeightsAndCapacities request.
variant_name: StringThe name of the variant.
Trait Implementations§
Source§impl Clone for ProductionVariantSummary
impl Clone for ProductionVariantSummary
Source§fn clone(&self) -> ProductionVariantSummary
fn clone(&self) -> ProductionVariantSummary
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 ProductionVariantSummary
impl Debug for ProductionVariantSummary
Source§impl Default for ProductionVariantSummary
impl Default for ProductionVariantSummary
Source§fn default() -> ProductionVariantSummary
fn default() -> ProductionVariantSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProductionVariantSummary
impl<'de> Deserialize<'de> for ProductionVariantSummary
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 PartialEq for ProductionVariantSummary
impl PartialEq for ProductionVariantSummary
impl StructuralPartialEq for ProductionVariantSummary
Auto Trait Implementations§
impl Freeze for ProductionVariantSummary
impl RefUnwindSafe for ProductionVariantSummary
impl Send for ProductionVariantSummary
impl Sync for ProductionVariantSummary
impl Unpin for ProductionVariantSummary
impl UnwindSafe for ProductionVariantSummary
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