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: StringRate used to calculate proration.
billing_period: TimePeriodTrait Implementations§
Source§impl<'de> Deserialize<'de> for Proration
impl<'de> Deserialize<'de> for Proration
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Proration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Proration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Proration
impl Serialize for Proration
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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