#[non_exhaustive]pub struct TopBottomRankedComputation {
pub computation_id: String,
pub name: Option<String>,
pub category: Option<DimensionField>,
pub value: Option<MeasureField>,
pub result_size: Option<i32>,
pub type: TopBottomComputationType,
}Expand description
The top ranked and bottom ranked computation configuration.
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.computation_id: StringThe ID for a computation.
name: Option<String>The name of a computation.
category: Option<DimensionField>The category field that is used in a computation.
value: Option<MeasureField>The value field that is used in a computation.
result_size: Option<i32>The result size of a top and bottom ranked computation.
type: TopBottomComputationTypeThe computation type. Choose one of the following options:
-
TOP: A top ranked computation.
-
BOTTOM: A bottom ranked computation.
Implementations§
source§impl TopBottomRankedComputation
impl TopBottomRankedComputation
sourcepub fn computation_id(&self) -> &str
pub fn computation_id(&self) -> &str
The ID for a computation.
sourcepub fn category(&self) -> Option<&DimensionField>
pub fn category(&self) -> Option<&DimensionField>
The category field that is used in a computation.
sourcepub fn value(&self) -> Option<&MeasureField>
pub fn value(&self) -> Option<&MeasureField>
The value field that is used in a computation.
sourcepub fn result_size(&self) -> Option<i32>
pub fn result_size(&self) -> Option<i32>
The result size of a top and bottom ranked computation.
sourcepub fn type(&self) -> &TopBottomComputationType
pub fn type(&self) -> &TopBottomComputationType
The computation type. Choose one of the following options:
-
TOP: A top ranked computation.
-
BOTTOM: A bottom ranked computation.
source§impl TopBottomRankedComputation
impl TopBottomRankedComputation
sourcepub fn builder() -> TopBottomRankedComputationBuilder
pub fn builder() -> TopBottomRankedComputationBuilder
Creates a new builder-style object to manufacture TopBottomRankedComputation.
Trait Implementations§
source§impl Clone for TopBottomRankedComputation
impl Clone for TopBottomRankedComputation
source§fn clone(&self) -> TopBottomRankedComputation
fn clone(&self) -> TopBottomRankedComputation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TopBottomRankedComputation
impl Debug for TopBottomRankedComputation
source§impl PartialEq for TopBottomRankedComputation
impl PartialEq for TopBottomRankedComputation
source§fn eq(&self, other: &TopBottomRankedComputation) -> bool
fn eq(&self, other: &TopBottomRankedComputation) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TopBottomRankedComputation
Auto Trait Implementations§
impl Freeze for TopBottomRankedComputation
impl RefUnwindSafe for TopBottomRankedComputation
impl Send for TopBottomRankedComputation
impl Sync for TopBottomRankedComputation
impl Unpin for TopBottomRankedComputation
impl UnwindSafe for TopBottomRankedComputation
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> 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)
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>
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