pub struct UnpricedLine {
pub phase: CostPhase,
pub reason: String,
}Expand description
One line item a total could not price: which phase it belonged to, and why.
The phase travels beside the reason because the two answer different questions and
a reader needs both. cost.py:339-343 renders the phase names in the total’s
parenthetical — plus 1 unpriced (image-build) — because a reason is a paragraph
and a total is one line, while Total::unpriced_reasons still hands over the
paragraphs for the consumer that wants them. Carrying only the reason, which is
what this type replaced, made the phase unavailable at render time and the Rust
total printed the paragraph.
Fields§
§phase: CostPhaseThe phase the line belonged to. What the total’s parenthetical names.
reason: StringWhy no figure could be attached to it.
Trait Implementations§
Source§impl Clone for UnpricedLine
impl Clone for UnpricedLine
Source§fn clone(&self) -> UnpricedLine
fn clone(&self) -> UnpricedLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnpricedLine
impl Debug for UnpricedLine
impl Eq for UnpricedLine
Source§impl PartialEq for UnpricedLine
impl PartialEq for UnpricedLine
impl StructuralPartialEq for UnpricedLine
Auto Trait Implementations§
impl Freeze for UnpricedLine
impl RefUnwindSafe for UnpricedLine
impl Send for UnpricedLine
impl Sync for UnpricedLine
impl Unpin for UnpricedLine
impl UnsafeUnpin for UnpricedLine
impl UnwindSafe for UnpricedLine
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§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.