pub struct OwnedMutatorParamDescriptor {
pub value_type: AttrType,
pub name: String,
pub description: Option<String>,
pub value_min: Option<AttrVal>,
pub value_max: Option<AttrVal>,
pub default_value: Option<AttrVal>,
pub least_effect_value: Option<AttrVal>,
pub value_distribution_kind: Option<ValueDistributionKind>,
pub value_distribution_scaling: Option<ValueDistributionScaling>,
pub value_distribution_option_set: Option<BTreeMap<String, AttrVal>>,
pub organization_custom_metadata: Option<OrganizationCustomMetadata>,
}
Fields§
§value_type: AttrType
§name: String
This is used as the parameter key interfix for parameter-specific attributes
and as the value associated with the mutator.params.<param-key>.name attribute
description: Option<String>
§value_min: Option<AttrVal>
§value_max: Option<AttrVal>
§default_value: Option<AttrVal>
§least_effect_value: Option<AttrVal>
§value_distribution_kind: Option<ValueDistributionKind>
§value_distribution_scaling: Option<ValueDistributionScaling>
§value_distribution_option_set: Option<BTreeMap<String, AttrVal>>
§organization_custom_metadata: Option<OrganizationCustomMetadata>
Implementations§
Source§impl OwnedMutatorParamDescriptor
impl OwnedMutatorParamDescriptor
Sourcepub fn new(value_type: AttrType, name: String) -> Option<Self>
pub fn new(value_type: AttrType, name: String) -> Option<Self>
name
is used as the parameter key interfix for parameter-specific attributes
and as the value associated with the mutator.params.<param-key>.name attribute
and thus must be a valid single segment of an attribute key (ASCII, no periods).
pub fn with_description(self, s: &str) -> Self
pub fn with_value_min(self, val: impl Into<AttrVal>) -> Self
pub fn with_value_max(self, val: impl Into<AttrVal>) -> Self
pub fn with_default_value(self, val: impl Into<AttrVal>) -> Self
pub fn with_least_effect_value(self, val: impl Into<AttrVal>) -> Self
pub fn with_value_distribution_kind(self, kind: ValueDistributionKind) -> Self
pub fn with_value_distribution_scaling( self, scaling: ValueDistributionScaling, ) -> Self
pub fn with_value_distribution_option(self, key: &str, val: AttrVal) -> Self
Trait Implementations§
Source§impl Clone for OwnedMutatorParamDescriptor
impl Clone for OwnedMutatorParamDescriptor
Source§fn clone(&self) -> OwnedMutatorParamDescriptor
fn clone(&self) -> OwnedMutatorParamDescriptor
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 moreAuto Trait Implementations§
impl Freeze for OwnedMutatorParamDescriptor
impl RefUnwindSafe for OwnedMutatorParamDescriptor
impl Send for OwnedMutatorParamDescriptor
impl Sync for OwnedMutatorParamDescriptor
impl Unpin for OwnedMutatorParamDescriptor
impl UnwindSafe for OwnedMutatorParamDescriptor
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