pub struct CapacitySource {
pub issues: usize,
pub units: Vec<String>,
}Expand description
Which snapshot a calculation read (T013’s source reference).
A CapacityCalculation never owns the snapshot: every surface receives the DTO, and
copying 10,000 issue records into each one would make the shared value the expensive
part of the system. This is the reference a surface can compare and quote instead —
how many issues the snapshot indexed and which units it resolved conversions for, i.e.
the exact reading the numbers came from. A historical snapshot identity is WP04’s
(the close snapshot), not this: these numbers are always the current reading.
Fields§
§issues: usizeHow many issues the snapshot indexed (IssueSnapshot::len).
units: Vec<String>The units the snapshot resolved conversions for (IssueSnapshot::targets), in
the snapshot’s stable order.
Trait Implementations§
Source§impl Clone for CapacitySource
impl Clone for CapacitySource
Source§impl Debug for CapacitySource
impl Debug for CapacitySource
Source§impl Default for CapacitySource
impl Default for CapacitySource
impl Eq for CapacitySource
Source§impl From<&IssueSnapshot> for CapacitySource
impl From<&IssueSnapshot> for CapacitySource
Source§fn from(snapshot: &IssueSnapshot) -> Self
fn from(snapshot: &IssueSnapshot) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CapacitySource
impl PartialEq for CapacitySource
impl StructuralPartialEq for CapacitySource
Auto Trait Implementations§
impl Freeze for CapacitySource
impl RefUnwindSafe for CapacitySource
impl Send for CapacitySource
impl Sync for CapacitySource
impl Unpin for CapacitySource
impl UnsafeUnpin for CapacitySource
impl UnwindSafe for CapacitySource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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