pub struct Proration {
pub rate: String,
pub billing_period: TimePeriod,
}
Expand description
How proration was calculated for this item. Populated when a transaction is created from a subscription change, where proration_billing_mode
was prorated_immediately
or prorated_next_billing_period
. Set automatically by Paddle.
Fields§
§rate: String
Rate used to calculate proration.
billing_period: TimePeriod
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proration
impl<'de> Deserialize<'de> for Proration
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
Auto Trait Implementations§
impl Freeze for Proration
impl RefUnwindSafe for Proration
impl Send for Proration
impl Sync for Proration
impl Unpin for Proration
impl UnwindSafe for Proration
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