pub struct Builder { /* private fields */ }
Expand description
A builder for FeatureValue
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn feature_name(self, input: impl Into<String>) -> Self
pub fn feature_name(self, input: impl Into<String>) -> Self
The name of a feature that a feature value corresponds to.
sourcepub fn set_feature_name(self, input: Option<String>) -> Self
pub fn set_feature_name(self, input: Option<String>) -> Self
The name of a feature that a feature value corresponds to.
sourcepub fn value_as_string(self, input: impl Into<String>) -> Self
pub fn value_as_string(self, input: impl Into<String>) -> Self
The value associated with a feature, in string format. Note that features types can be String, Integral, or Fractional. This value represents all three types as a string.
sourcepub fn set_value_as_string(self, input: Option<String>) -> Self
pub fn set_value_as_string(self, input: Option<String>) -> Self
The value associated with a feature, in string format. Note that features types can be String, Integral, or Fractional. This value represents all three types as a string.
sourcepub fn build(self) -> FeatureValue
pub fn build(self) -> FeatureValue
Consumes the builder and constructs a FeatureValue
.