pub struct BillingMeterEventAdjustment {
pub cancel: Option<BillingMeterResourceBillingMeterEventAdjustmentCancel>,
pub event_name: String,
pub livemode: bool,
pub status: BillingMeterEventAdjustmentStatus,
pub type_: BillingMeterEventAdjustmentType,
}
Expand description
A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
Fields§
§cancel: Option<BillingMeterResourceBillingMeterEventAdjustmentCancel>
Specifies which event to cancel.
event_name: String
The name of the meter event. Corresponds with the event_name
field on a meter.
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: BillingMeterEventAdjustmentStatus
The meter event adjustment’s status.
type_: BillingMeterEventAdjustmentType
Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
Trait Implementations§
Source§impl Clone for BillingMeterEventAdjustment
impl Clone for BillingMeterEventAdjustment
Source§fn clone(&self) -> BillingMeterEventAdjustment
fn clone(&self) -> BillingMeterEventAdjustment
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 BillingMeterEventAdjustment
impl Debug for BillingMeterEventAdjustment
Source§impl FromValueOpt for BillingMeterEventAdjustment
impl FromValueOpt for BillingMeterEventAdjustment
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for BillingMeterEventAdjustment
impl RefUnwindSafe for BillingMeterEventAdjustment
impl Send for BillingMeterEventAdjustment
impl Sync for BillingMeterEventAdjustment
impl Unpin for BillingMeterEventAdjustment
impl UnwindSafe for BillingMeterEventAdjustment
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