Struct aws_sdk_sagemaker::types::ShadowModelVariantConfig
source · #[non_exhaustive]pub struct ShadowModelVariantConfig {
pub shadow_model_variant_name: Option<String>,
pub sampling_percentage: Option<i32>,
}
Expand description
The name and sampling percentage of a shadow variant.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.shadow_model_variant_name: Option<String>
The name of the shadow variant.
sampling_percentage: Option<i32>
The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.
Implementations§
source§impl ShadowModelVariantConfig
impl ShadowModelVariantConfig
sourcepub fn shadow_model_variant_name(&self) -> Option<&str>
pub fn shadow_model_variant_name(&self) -> Option<&str>
The name of the shadow variant.
sourcepub fn sampling_percentage(&self) -> Option<i32>
pub fn sampling_percentage(&self) -> Option<i32>
The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.
source§impl ShadowModelVariantConfig
impl ShadowModelVariantConfig
sourcepub fn builder() -> ShadowModelVariantConfigBuilder
pub fn builder() -> ShadowModelVariantConfigBuilder
Creates a new builder-style object to manufacture ShadowModelVariantConfig
.
Trait Implementations§
source§impl Clone for ShadowModelVariantConfig
impl Clone for ShadowModelVariantConfig
source§fn clone(&self) -> ShadowModelVariantConfig
fn clone(&self) -> ShadowModelVariantConfig
Returns a copy 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 ShadowModelVariantConfig
impl Debug for ShadowModelVariantConfig
source§impl PartialEq for ShadowModelVariantConfig
impl PartialEq for ShadowModelVariantConfig
source§fn eq(&self, other: &ShadowModelVariantConfig) -> bool
fn eq(&self, other: &ShadowModelVariantConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ShadowModelVariantConfig
Auto Trait Implementations§
impl Freeze for ShadowModelVariantConfig
impl RefUnwindSafe for ShadowModelVariantConfig
impl Send for ShadowModelVariantConfig
impl Sync for ShadowModelVariantConfig
impl Unpin for ShadowModelVariantConfig
impl UnwindSafe for ShadowModelVariantConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.