pub struct PortableCalculation {Show 14 fields
pub scope: PortableScope,
pub state: String,
pub capacity: Option<u64>,
pub unit: Option<String>,
pub committed: Option<u64>,
pub completed: Option<u64>,
pub remaining: Option<u64>,
pub overflow: Option<u64>,
pub utilization: Option<u32>,
pub counted_issues: Option<u32>,
pub uncounted_issues: Option<u32>,
pub unestimated_issues: Option<u32>,
pub source: PortableSource,
pub diagnostics: Vec<PortableCapacityDiagnostic>,
}Expand description
The shared calculation, projected field for field (T041).
Every field is the DTO’s own value; the Options are the DTO’s Options, so an absent
value stays absent and unconfigured stays an explicit state.
Fields§
§scope: PortableScopeThe resolved scope the numbers describe.
state: StringWhether the scope had a ceiling it could count against.
capacity: Option<u64>The ceiling in force, or null when the scope was unconfigured.
unit: Option<String>The unit every number is counted in, or null when unconfigured.
committed: Option<u64>The sum of the valid, converted estimates in scope.
completed: Option<u64>The committed part the shared completion service calls complete.
remaining: Option<u64>committed - completed.
overflow: Option<u64>max(committed - capacity, 0).
utilization: Option<u32>committed as a floored whole percentage of capacity.
counted_issues: Option<u32>Issues whose estimate was counted into committed.
uncounted_issues: Option<u32>Issues that state an estimate which could not be counted in the unit.
unestimated_issues: Option<u32>Issues that state no estimate at all.
source: PortableSourceThe reading the numbers came from.
diagnostics: Vec<PortableCapacityDiagnostic>The findings, in the DTO’s derivation order.
Trait Implementations§
Source§impl Clone for PortableCalculation
impl Clone for PortableCalculation
Source§impl Debug for PortableCalculation
impl Debug for PortableCalculation
Source§impl<'de> Deserialize<'de> for PortableCalculation
impl<'de> Deserialize<'de> for PortableCalculation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PortableCalculation
Source§impl PartialEq for PortableCalculation
impl PartialEq for PortableCalculation
Source§impl Serialize for PortableCalculation
impl Serialize for PortableCalculation
impl StructuralPartialEq for PortableCalculation
Auto Trait Implementations§
impl Freeze for PortableCalculation
impl RefUnwindSafe for PortableCalculation
impl Send for PortableCalculation
impl Sync for PortableCalculation
impl Unpin for PortableCalculation
impl UnsafeUnpin for PortableCalculation
impl UnwindSafe for PortableCalculation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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