#[non_exhaustive]pub struct UpdateFeatureInput {
pub project: Option<String>,
pub feature: Option<String>,
pub evaluation_strategy: Option<FeatureEvaluationStrategy>,
pub description: Option<String>,
pub add_or_update_variations: Option<Vec<VariationConfig>>,
pub remove_variations: Option<Vec<String>>,
pub default_variation: Option<String>,
pub entity_overrides: Option<HashMap<String, String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.project: Option<String>
The name or ARN of the project that contains the feature to be updated.
feature: Option<String>
The name of the feature to be updated.
evaluation_strategy: Option<FeatureEvaluationStrategy>
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
description: Option<String>
An optional description of the feature.
add_or_update_variations: Option<Vec<VariationConfig>>
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
remove_variations: Option<Vec<String>>
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
default_variation: Option<String>
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
entity_overrides: Option<HashMap<String, String>>
Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
Implementations§
source§impl UpdateFeatureInput
impl UpdateFeatureInput
sourcepub fn project(&self) -> Option<&str>
pub fn project(&self) -> Option<&str>
The name or ARN of the project that contains the feature to be updated.
sourcepub fn evaluation_strategy(&self) -> Option<&FeatureEvaluationStrategy>
pub fn evaluation_strategy(&self) -> Option<&FeatureEvaluationStrategy>
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
An optional description of the feature.
sourcepub fn add_or_update_variations(&self) -> &[VariationConfig]
pub fn add_or_update_variations(&self) -> &[VariationConfig]
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .add_or_update_variations.is_none()
.
sourcepub fn remove_variations(&self) -> &[String]
pub fn remove_variations(&self) -> &[String]
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .remove_variations.is_none()
.
sourcepub fn default_variation(&self) -> Option<&str>
pub fn default_variation(&self) -> Option<&str>
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
sourcepub fn entity_overrides(&self) -> Option<&HashMap<String, String>>
pub fn entity_overrides(&self) -> Option<&HashMap<String, String>>
Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
source§impl UpdateFeatureInput
impl UpdateFeatureInput
sourcepub fn builder() -> UpdateFeatureInputBuilder
pub fn builder() -> UpdateFeatureInputBuilder
Creates a new builder-style object to manufacture UpdateFeatureInput
.
Trait Implementations§
source§impl Clone for UpdateFeatureInput
impl Clone for UpdateFeatureInput
source§fn clone(&self) -> UpdateFeatureInput
fn clone(&self) -> UpdateFeatureInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateFeatureInput
impl Debug for UpdateFeatureInput
source§impl PartialEq for UpdateFeatureInput
impl PartialEq for UpdateFeatureInput
source§fn eq(&self, other: &UpdateFeatureInput) -> bool
fn eq(&self, other: &UpdateFeatureInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateFeatureInput
Auto Trait Implementations§
impl Freeze for UpdateFeatureInput
impl RefUnwindSafe for UpdateFeatureInput
impl Send for UpdateFeatureInput
impl Sync for UpdateFeatureInput
impl Unpin for UpdateFeatureInput
impl UnwindSafe for UpdateFeatureInput
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<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>
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>
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 more