pub struct BillingPreviewLine {
pub amount_cents: i64,
pub code: String,
pub kind: BillingPreviewLineKind,
pub name: String,
pub period_end: Option<String>,
pub period_start: Option<String>,
pub units: String,
}Fields§
§amount_cents: i64§code: StringThe fixed-charge code for a fixed charge, the metric code for usage, and the plan code otherwise.
kind: BillingPreviewLineKind§name: String§period_end: Option<String>§period_start: Option<String>§units: StringUnits billed, as a decimal. Units already paid this period are not billed again, so a purchase can bill fewer units than it adds.
Implementations§
Source§impl BillingPreviewLine
impl BillingPreviewLine
pub fn serialize<__S>(
__self: &BillingPreviewLine,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> BillingPreviewLine
impl<'de> BillingPreviewLine
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<BillingPreviewLine, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for BillingPreviewLine
impl Clone for BillingPreviewLine
Source§impl Debug for BillingPreviewLine
impl Debug for BillingPreviewLine
Source§impl<'de> Deserialize<'de> for BillingPreviewLine
impl<'de> Deserialize<'de> for BillingPreviewLine
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 BillingPreviewLine
impl RefUnwindSafe for BillingPreviewLine
impl Send for BillingPreviewLine
impl Sync for BillingPreviewLine
impl Unpin for BillingPreviewLine
impl UnsafeUnpin for BillingPreviewLine
impl UnwindSafe for BillingPreviewLine
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