pub struct AppliedComponent {
pub tariff_id: String,
pub element_index: usize,
pub component_index: usize,
pub because: String,
}Available on crate feature
tariffs only.Expand description
The exact Price Component that priced a segment.
This is the audit trail: a tariff_id plus an index into its elements names one row of one
object the CPO published, which can be quoted back at them.
Fields§
§tariff_id: StringThe Tariff.id the component came from.
element_index: usizeThe index of the Tariff Element within that Tariff’s elements.
component_index: usizeThe index of the Price Component within that element’s price_components.
because: StringWhy this element was selected — which restrictions it satisfied — in words.
Trait Implementations§
Source§impl Clone for AppliedComponent
impl Clone for AppliedComponent
Source§fn clone(&self) -> AppliedComponent
fn clone(&self) -> AppliedComponent
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 AppliedComponent
impl Debug for AppliedComponent
Source§impl<'de> Deserialize<'de> for AppliedComponent
impl<'de> Deserialize<'de> for AppliedComponent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AppliedComponent
impl Display for AppliedComponent
impl Eq for AppliedComponent
Source§impl PartialEq for AppliedComponent
impl PartialEq for AppliedComponent
Source§impl Serialize for AppliedComponent
impl Serialize for AppliedComponent
impl StructuralPartialEq for AppliedComponent
Auto Trait Implementations§
impl Freeze for AppliedComponent
impl RefUnwindSafe for AppliedComponent
impl Send for AppliedComponent
impl Sync for AppliedComponent
impl Unpin for AppliedComponent
impl UnsafeUnpin for AppliedComponent
impl UnwindSafe for AppliedComponent
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,
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§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.