Struct aws_sdk_quicksight::types::TopicCalculatedField
source · #[non_exhaustive]pub struct TopicCalculatedField {Show 17 fields
pub calculated_field_name: String,
pub calculated_field_description: Option<String>,
pub expression: String,
pub calculated_field_synonyms: Option<Vec<String>>,
pub is_included_in_topic: bool,
pub disable_indexing: Option<bool>,
pub column_data_role: Option<ColumnDataRole>,
pub time_granularity: Option<TopicTimeGranularity>,
pub default_formatting: Option<DefaultFormatting>,
pub aggregation: Option<DefaultAggregation>,
pub comparative_order: Option<ComparativeOrder>,
pub semantic_type: Option<SemanticType>,
pub allowed_aggregations: Option<Vec<AuthorSpecifiedAggregation>>,
pub not_allowed_aggregations: Option<Vec<AuthorSpecifiedAggregation>>,
pub never_aggregate_in_filter: bool,
pub cell_value_synonyms: Option<Vec<CellValueSynonym>>,
pub non_additive: Option<bool>,
}Expand description
A structure that represents a calculated field.
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.calculated_field_name: StringThe calculated field name.
calculated_field_description: Option<String>The calculated field description.
expression: StringThe calculated field expression.
calculated_field_synonyms: Option<Vec<String>>The other names or aliases for the calculated field.
is_included_in_topic: boolA boolean value that indicates if a calculated field is included in the topic.
disable_indexing: Option<bool>A Boolean value that indicates if a calculated field is visible in the autocomplete.
column_data_role: Option<ColumnDataRole>The column data role for a calculated field. Valid values for this structure are DIMENSION and MEASURE.
time_granularity: Option<TopicTimeGranularity>The level of time precision that is used to aggregate DateTime values.
default_formatting: Option<DefaultFormatting>The default formatting definition.
aggregation: Option<DefaultAggregation>The default aggregation. Valid values for this structure are SUM, MAX, MIN, COUNT, DISTINCT_COUNT, and AVERAGE.
comparative_order: Option<ComparativeOrder>The order in which data is displayed for the calculated field when it's used in a comparative context.
semantic_type: Option<SemanticType>The semantic type.
allowed_aggregations: Option<Vec<AuthorSpecifiedAggregation>>The list of aggregation types that are allowed for the calculated field. Valid values for this structure are COUNT, DISTINCT_COUNT, MIN, MAX, MEDIAN, SUM, AVERAGE, STDEV, STDEVP, VAR, VARP, and PERCENTILE.
not_allowed_aggregations: Option<Vec<AuthorSpecifiedAggregation>>The list of aggregation types that are not allowed for the calculated field. Valid values for this structure are COUNT, DISTINCT_COUNT, MIN, MAX, MEDIAN, SUM, AVERAGE, STDEV, STDEVP, VAR, VARP, and PERCENTILE.
never_aggregate_in_filter: boolA Boolean value that indicates whether to never aggregate calculated field in filters.
cell_value_synonyms: Option<Vec<CellValueSynonym>>The other names or aliases for the calculated field cell value.
non_additive: Option<bool>The non additive for the table style target.
Implementations§
source§impl TopicCalculatedField
impl TopicCalculatedField
sourcepub fn calculated_field_name(&self) -> &str
pub fn calculated_field_name(&self) -> &str
The calculated field name.
sourcepub fn calculated_field_description(&self) -> Option<&str>
pub fn calculated_field_description(&self) -> Option<&str>
The calculated field description.
sourcepub fn expression(&self) -> &str
pub fn expression(&self) -> &str
The calculated field expression.
sourcepub fn calculated_field_synonyms(&self) -> &[String]
pub fn calculated_field_synonyms(&self) -> &[String]
The other names or aliases for the calculated field.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .calculated_field_synonyms.is_none().
sourcepub fn is_included_in_topic(&self) -> bool
pub fn is_included_in_topic(&self) -> bool
A boolean value that indicates if a calculated field is included in the topic.
sourcepub fn disable_indexing(&self) -> Option<bool>
pub fn disable_indexing(&self) -> Option<bool>
A Boolean value that indicates if a calculated field is visible in the autocomplete.
sourcepub fn column_data_role(&self) -> Option<&ColumnDataRole>
pub fn column_data_role(&self) -> Option<&ColumnDataRole>
The column data role for a calculated field. Valid values for this structure are DIMENSION and MEASURE.
sourcepub fn time_granularity(&self) -> Option<&TopicTimeGranularity>
pub fn time_granularity(&self) -> Option<&TopicTimeGranularity>
The level of time precision that is used to aggregate DateTime values.
sourcepub fn default_formatting(&self) -> Option<&DefaultFormatting>
pub fn default_formatting(&self) -> Option<&DefaultFormatting>
The default formatting definition.
sourcepub fn aggregation(&self) -> Option<&DefaultAggregation>
pub fn aggregation(&self) -> Option<&DefaultAggregation>
The default aggregation. Valid values for this structure are SUM, MAX, MIN, COUNT, DISTINCT_COUNT, and AVERAGE.
sourcepub fn comparative_order(&self) -> Option<&ComparativeOrder>
pub fn comparative_order(&self) -> Option<&ComparativeOrder>
The order in which data is displayed for the calculated field when it's used in a comparative context.
sourcepub fn semantic_type(&self) -> Option<&SemanticType>
pub fn semantic_type(&self) -> Option<&SemanticType>
The semantic type.
sourcepub fn allowed_aggregations(&self) -> &[AuthorSpecifiedAggregation]
pub fn allowed_aggregations(&self) -> &[AuthorSpecifiedAggregation]
The list of aggregation types that are allowed for the calculated field. Valid values for this structure are COUNT, DISTINCT_COUNT, MIN, MAX, MEDIAN, SUM, AVERAGE, STDEV, STDEVP, VAR, VARP, and PERCENTILE.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .allowed_aggregations.is_none().
sourcepub fn not_allowed_aggregations(&self) -> &[AuthorSpecifiedAggregation]
pub fn not_allowed_aggregations(&self) -> &[AuthorSpecifiedAggregation]
The list of aggregation types that are not allowed for the calculated field. Valid values for this structure are COUNT, DISTINCT_COUNT, MIN, MAX, MEDIAN, SUM, AVERAGE, STDEV, STDEVP, VAR, VARP, and PERCENTILE.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .not_allowed_aggregations.is_none().
sourcepub fn never_aggregate_in_filter(&self) -> bool
pub fn never_aggregate_in_filter(&self) -> bool
A Boolean value that indicates whether to never aggregate calculated field in filters.
sourcepub fn cell_value_synonyms(&self) -> &[CellValueSynonym]
pub fn cell_value_synonyms(&self) -> &[CellValueSynonym]
The other names or aliases for the calculated field cell value.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .cell_value_synonyms.is_none().
sourcepub fn non_additive(&self) -> Option<bool>
pub fn non_additive(&self) -> Option<bool>
The non additive for the table style target.
source§impl TopicCalculatedField
impl TopicCalculatedField
sourcepub fn builder() -> TopicCalculatedFieldBuilder
pub fn builder() -> TopicCalculatedFieldBuilder
Creates a new builder-style object to manufacture TopicCalculatedField.
Trait Implementations§
source§impl Clone for TopicCalculatedField
impl Clone for TopicCalculatedField
source§fn clone(&self) -> TopicCalculatedField
fn clone(&self) -> TopicCalculatedField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TopicCalculatedField
impl Debug for TopicCalculatedField
source§impl PartialEq for TopicCalculatedField
impl PartialEq for TopicCalculatedField
source§fn eq(&self, other: &TopicCalculatedField) -> bool
fn eq(&self, other: &TopicCalculatedField) -> bool
self and other values to be equal, and is used
by ==.