pub struct PricedSegment {
pub start: DateTime,
pub quantity: Number,
pub price: Number,
pub vat_percentage: Option<Number>,
pub cost: Number,
pub applied: AppliedComponent,
}Available on crate feature
tariffs only.Expand description
One stretch of a session priced at a single rate.
Fields§
§start: DateTimeWhen this stretch began.
quantity: NumberThe quantity billed in this stretch.
price: NumberThe unit price applied.
vat_percentage: Option<Number>The VAT percentage applied, if the price component named one.
cost: NumberThe cost of this stretch, excluding VAT.
applied: AppliedComponentWhich Tariff Element priced it.
Trait Implementations§
Source§impl Clone for PricedSegment
impl Clone for PricedSegment
Source§fn clone(&self) -> PricedSegment
fn clone(&self) -> PricedSegment
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 PricedSegment
impl Debug for PricedSegment
Source§impl<'de> Deserialize<'de> for PricedSegment
impl<'de> Deserialize<'de> for PricedSegment
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 PartialEq for PricedSegment
impl PartialEq for PricedSegment
Source§impl Serialize for PricedSegment
impl Serialize for PricedSegment
impl StructuralPartialEq for PricedSegment
Auto Trait Implementations§
impl Freeze for PricedSegment
impl RefUnwindSafe for PricedSegment
impl Send for PricedSegment
impl Sync for PricedSegment
impl Unpin for PricedSegment
impl UnsafeUnpin for PricedSegment
impl UnwindSafe for PricedSegment
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