pub struct BillingMeter {
pub created: Timestamp,
pub customer_mapping: BillingMeterResourceCustomerMappingSettings,
pub default_aggregation: BillingMeterResourceAggregationSettings,
pub display_name: String,
pub event_name: String,
pub event_time_window: Option<BillingMeterEventTimeWindow>,
pub id: BillingMeterId,
pub livemode: bool,
pub status: BillingMeterStatus,
pub status_transitions: BillingMeterResourceBillingMeterStatusTransitions,
pub updated: Timestamp,
pub value_settings: BillingMeterResourceBillingMeterValue,
}
Expand description
Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill.
Related guide: Usage based billing
Fields§
§created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
customer_mapping: BillingMeterResourceCustomerMappingSettings
§default_aggregation: BillingMeterResourceAggregationSettings
§display_name: String
The meter’s name.
event_name: String
The name of the meter event to record usage for.
Corresponds with the event_name
field on meter events.
event_time_window: Option<BillingMeterEventTimeWindow>
The time window to pre-aggregate meter events for, if any.
id: BillingMeterId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
status: BillingMeterStatus
The meter’s status.
status_transitions: BillingMeterResourceBillingMeterStatusTransitions
§updated: Timestamp
Time at which the object was last updated. Measured in seconds since the Unix epoch.
value_settings: BillingMeterResourceBillingMeterValue
Trait Implementations§
Source§impl Clone for BillingMeter
impl Clone for BillingMeter
Source§fn clone(&self) -> BillingMeter
fn clone(&self) -> BillingMeter
Returns a duplicate of the value. Read more
1.0.0 · 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 BillingMeter
impl Debug for BillingMeter
Source§impl Deserialize for BillingMeter
impl Deserialize for BillingMeter
Source§impl FromValueOpt for BillingMeter
impl FromValueOpt for BillingMeter
fn from_value(v: Value) -> Option<Self>
Source§impl Object for BillingMeter
impl Object for BillingMeter
Source§impl ObjectDeser for BillingMeter
impl ObjectDeser for BillingMeter
Auto Trait Implementations§
impl Freeze for BillingMeter
impl RefUnwindSafe for BillingMeter
impl Send for BillingMeter
impl Sync for BillingMeter
impl Unpin for BillingMeter
impl UnwindSafe for BillingMeter
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