pub struct UsageEvent {
pub tenant_id: String,
pub customer_id: String,
pub meter: String,
pub units: u64,
pub idempotency_key: Option<String>,
pub timestamp: u64,
}Expand description
One delivered unit event emitted by the request path.
Fields§
§tenant_id: StringInternal tenant identifier used for deduplication and reconciliation.
customer_id: StringBilling-provider customer identifier.
meter: StringProvider meter event name.
units: u64Integer quantity to add to the meter.
idempotency_key: Option<String>Stable key for once-only work such as a completed durable task.
timestamp: u64Event time in Unix seconds.
Implementations§
Trait Implementations§
Source§impl Clone for UsageEvent
impl Clone for UsageEvent
Source§impl Debug for UsageEvent
impl Debug for UsageEvent
impl Eq for UsageEvent
Source§impl PartialEq for UsageEvent
impl PartialEq for UsageEvent
impl StructuralPartialEq for UsageEvent
Auto Trait Implementations§
impl Freeze for UsageEvent
impl RefUnwindSafe for UsageEvent
impl Send for UsageEvent
impl Sync for UsageEvent
impl Unpin for UsageEvent
impl UnsafeUnpin for UsageEvent
impl UnwindSafe for UsageEvent
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